I'm getting an error message: [Error JVM-0031] Cannot find linked method (stamp/
Hello,
I had thought Freqout was a valid object in Javelin, but I could be mixing languages by accident.
I thought I had a working program to make some noise on a peizoelectric speaker, and it compiles fine in the Javelin Stamp IDE. When I try to download it to my Stamp, I get the error [noparse][[/noparse]Error JVM-0031] Cannot find linked method (stamp/core/PWM.<init>). Any ideas?
Thanks!
I had thought Freqout was a valid object in Javelin, but I could be mixing languages by accident.
I thought I had a working program to make some noise on a peizoelectric speaker, and it compiles fine in the Javelin Stamp IDE. When I try to download it to my Stamp, I get the error [noparse][[/noparse]Error JVM-0031] Cannot find linked method (stamp/core/PWM.<init>). Any ideas?
Thanks!
Comments
also located in folder core.
Do you use import stamp.core.*; in your program?
Attach your program so I can check wether it links on my pc.
regards peter
Attached is my code. Any help you can give is much appreciated.
Thanks!
Marie
Both commands Project->Compile and Project->Link are succesful.
You stated that works for you too.
Then you download the program to the javelin and you get this JVM error.
I checked the generated jemfile and it contains the PWM.<init> method.
Are you using a Board of Education USB version or the Professional Development Board using the USB?
If so, have you read this thread:
http://forums.parallax.com/showthread.php?p=656527
regards peter
Thanks,
Marie
external usb2ser cable which should be fine.
If the command Project->Link fails then you cannot even download to the
javelin.
Place the program file in the folder Projects in the javelin ide installation folder.
Then start the ide and load the program from the Projects folder.
See if Project->Link is succesful then.
I assume you are using winxp/vista and that you have administrator rights.
regards peter
[noparse][[/noparse]Java Error] piezo_speaker.java(6): Error: Type Freqout was not found
[noparse][[/noparse]Java Error] piezo_speaker.java(6): Error: No match was found for constructor "Freqout(int, int)"
However, when I close IDE and reload normally, using the file in the Projects folder, I get the same link error as before. I can download every other program I wrote for it, including ones that directly use the PWM class. Any other ideas?
I attached that file here so you can save it into the core folder.
regards peter
Marie