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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

File version for JRE

OUr application is run on the JDK environment. We specify the java classpath.
Our client questions us why the applicatin cannot be run on the JRE environment.

NOtes. some jar files are downloaded from other web sites, such as Oracle, Hibernate,etc.

In sun web site, the file we download for jre is a .exe file. not a file version. In this case, how do i change the classpath and manually add external jar file to the classpath?

0
LeanMoreTryMore
Asked:
LeanMoreTryMore
1 Solution
 
basicinstinctCommented:
manually setting the classpath is not hard, you can do it at the command line using the SET command

1. Open a command prompt (start/run/cmd)
2. Type the following command (replace C:\wherevever\something\somewhere with the real path to your jars):

     set CLASSPATH=%CLASSPATH%;C:\wherevever\something\somewhere

OR you can do it through a GUI:

1. On your keyboard, hit "Windows Key" + "Break"
2. Go to the "Advanced" tab.
3. Click on "Environment Variables"
4. Double-click CLASSPATH and make your changes.
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now