How to shorten classpath?

How to set java PATH and CLASSPATH in ubuntu 11.10?

  • I am new to Linux. I am using Ubuntu 11.10. I want to do java programming. I've installed openjdk. But i have no idea about how to set java PATH and CLASSPATH. So Can you tell me how to set PATH and CLASSPATH. Pls help me...

  • Answer:

    You can run the export commands in the command line every time you open up a console, or you can add them to your bash profile file. export PATH=$PATH:/home/myusername/directorywit… export CLASSPATH=$CLASSPATH:/home/myusername/di… Java and javac also have the option to put the classpath as a parameter. See help by running "java" or "javac" with no options.

SidNAniR... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.