Solved

Java Virtual Machine and ClassPath

Posted on 2006-07-17
4
276 Views
Last Modified: 2010-04-01
I'm creating a c++ Wrapper that will interface with 3rd Party API's.  Those API's create a Java Virtual Machine.  I've utilizing JDK1.4.  

I've set my PATH variable to point to my JVM.DLL file.  

Do I have to set my CLASSPATH environment variable as well for this to operate properly?

0
Comment
Question by:jpmc_cmsops
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 17125367
The CPLASSPATH should already be set correctly by the JVM's installer. If not, that should definitely be done. You can check if it is set by typing

echo %CLASSPATH%

at the command prompt.
0
 

Author Comment

by:jpmc_cmsops
ID: 17125475
here is my settings:
C:\PROGRA~1\Sybase\ASEP_W~1\3pclass.zip;C:\PROGRA~1\Sybase\ASEP_W~1\monclass.zip;C:\Program Files\JavaSoft\JRE\1.3.1\lib\ext\QTJava.zip

It doesn't reference the jre 1.4 anywhere....  I just uninstalled and re-installed the file and the classpath didn't change.  But I'm not sure what to use...
0
 
LVL 86

Expert Comment

by:jkr
ID: 17127216
"CLASSPATH" and "PATH" are completely unrelated. The latter is where the JVM is looking for its files, "PATH" is for the rest...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question