Solved

Java Virtual Machine and ClassPath

Posted on 2006-07-17
4
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

756 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