The Artima Developer Community
Sponsored Link

Java Answers Forum
Linux class path

2 replies on 1 page. Most recent reply: Mar 12, 2003 7:19 AM by CoDeFrEaK

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
CoDeFrEaK

Posts: 9
Nickname: codefreak
Registered: Feb, 2003

Linux class path Posted: Mar 10, 2003 6:07 AM
Reply to this message Reply
Advertisement
do you guys know how to set the class path in linux, i just got a new class(Keyboard) and i wanna use it.


Joeri Cornelissens

Posts: 2
Nickname: boeddha
Registered: Mar, 2003

Re: Linux class path Posted: Mar 11, 2003 1:48 AM
Reply to this message Reply
You can use 2 ways:

At compiling time use eg :

javac -classpath /home/user/dir/ Keyboard.java

or set the classpath environmental variable:

export classpath=/home/user/dir/

When executing or running the proggram use:
java -classpath /home/user/dir/ Keyboard

--
Joeri Cornelissens

CoDeFrEaK

Posts: 9
Nickname: codefreak
Registered: Feb, 2003

Re: Linux class path Posted: Mar 12, 2003 7:19 AM
Reply to this message Reply
thanks man.

Flat View: This topic has 2 replies on 1 page
Topic: StringTokenizer problem, throwing a NullPointerException Previous Topic   Next Topic Topic: Integrate CR to a Java application

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use