wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes how to run in JDK 1.5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to run in JDK 1.5.1" Watch "how to run in JDK 1.5.1" New topic
Author

how to run in JDK 1.5.1

pingkan paula
Ranch Hand

Joined: Sep 03, 2004
Posts: 117
Hi all, I'm using JDK 1.5.1 and I have an error whenever I want to run my swing application using java command, error display that it doesn't have java2 run time environment
Can anyone give some information about this?
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
what do you read when you type:
java -version
in your command line?


java amateur
pingkan paula
Ranch Hand

Joined: Sep 03, 2004
Posts: 117
It displayed

Registry Key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion
has value 1.4 but 1.5 is required
Error: Could not find java.dll
Error: Could not find java2 Environment

I had set c:\java\jdk 1.5 in Classpath and c:\java\jdk 1.5\bin in path
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
in case you indeed have java 5, java -version should display something like this:
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to run in JDK 1.5.1
 
Similar Threads
Axis2 NoSuchMethodError
NoSuchMethodError in JUnit task in Ant 1.5.1
MultipleChoiceInputRequest
ClassNotFoundException: org.apache.axis2.transport.SimpleAxis2Server
Axis 2 tutorial - client class compliation error