Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java Virtual Machine and ClassPath

Posted on 2006-07-17
4
Medium Priority
?
282 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 250 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

916 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