• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM Error

 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
I get this error when trying the run the prg frm command promt.
"The procedure entry point
_JVM_SupportsCX8@0 could not be located in the
dynamic link library jvm.dll"
If I get a JVM error running java code (from command line or from any other application), what all should I check for ?
Thanks and Regards,
Leena
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HOW exactly are you invoking your program?
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I compiled the java file. And then tried to run it with the syntax -
java MyClass
A dialog box pops up showing the message I posted above.
Leena
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Cindy,
Did I post this in a bit wrong thread ?
Can u move this query to the appropriate thread if someother guru might also help us ?
Thanks and Regards,
Leena
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, let's move it to advanced and see if someone can shed some light.
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect something'g got corrupted with your jdk or jre install. This message is coming from Windoze when it is trying to assembel all the dlls needed to make up the java executable.
The jvm.dll contains the stuff for hotspot, and might reside in one of several places under <jdk_install>\jre\bin, depending on what you installed (version, etc). You might have client\jvm.dll or server\jvm.dll hotspot\jvm.dll, and/or client\jvm.dll.
With JDK 1.4, you'll only have client and server versions.
You can switch between the different versions using -client, -server, -hotspot (same as -client) and -classic (1.3 and before only). The default is determined by the file jvm.cfg which is in jre\lib with jdk 1.3 or jre\lib\i386 for jdk 1.4.
Some things to try:
java -version
and see if it tells you that you are using the version you expected.
java -client -version (or -hotspot rather than -client)
See what it says
java -classic -version (if you are using 1.3 or before)
You can also try running the above and/or your program with a specific jvm install:
c:\the\path\to\my\jdk\bin\java.exe MyClass
to make sure you use the java version you really want.
Some of that might give you some clue as to what is going wrong. Like I said, I'd suspect something wrong in your environment or maybe some IDE has installed something goofy....
All else fails uninstall and reinstall the JDK.
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dave,
That was quite useful ! Thank you..
When I type "java" and press enter, I do not see the help. I get the error instead.
The problem persisted even after a reinstall.
I had two, 1.3 and 1.4 version of J2SDK. I was referring to only 1 of them in path. The problem disappeared when I kept only one version on my system.
Why should it be like this ?
Thanks and Regards,
Leena
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should not be like that. I sometimes have had 5 or 6 versions of JDK installed on the same machine and just switching PATH was all it took.
Only thing I can think of: Sometimes the JDK also installs a JRE under somewhere like C:\Windoze\System or something like that (I don't have a windoze machine nearby, so the path is probably way off - but I'm thinking of somewhere under c:\Windows or c:\winnt etc.). This jre is used to support browsers and such, I think. Maybe that JRE is also in PATH and is confusing things.
When I have used Windows machines with several JDKs installed, I made sure that I only used the JDK's bin in PATH (and, I put it FIRST in my path so other gunk would not get in the way).
If you need to go back to two JDK installs, try putting the JDK's bin directory first in PATH, as in:
set PATH=C:\java\jdk141\bin;%PATH%
 
Leena Diwan
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dave,
That makes sense. I too have had 2 jdks on one pc. but did not have problems earlier.
The jdk bin was first in the path. So the other reason seems the one.
Thank you !
Leena
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic