Solved

Java Virtual Machine and ClassPath

Posted on 2006-07-17
4
279 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying 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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

737 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