Solved

Java Virtual Machine and ClassPath

Posted on 2006-07-17
4
271 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
Comment Utility
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
Comment Utility
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
Comment Utility
"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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now