LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2005, 03:28 PM   #1
Penetal
LQ Newbie
 
Registered: Nov 2005
Location: Oslo, Norway
Posts: 5

Rep: Reputation: 0
Angry Java PATH & easyIO & zip ?


Hey their.

I'v installed j2sdk1.4.2_09, and it's working fine, exept that
I have to declare the PATH evry time.
How do I save the modifyed PATH? I'v tryed to set
PATH=.... but that dont work at all. So I used
export PATH=.... and it's working, but I have to do it evry time
I reopen the terminl.
declare PATH=.... is the same ass export.

Then there is easyIO, I think I'v tryed it all now.

declare classpath=/root/j2sdk1.4.2_09/easyIO/easyIO.jar.;
export classpath=/root/j2sdk1.4.2_09/easyIO/easyIO.jar.;
declare classpath=/root/j2sdk1.4.2_09/easyIO
export classpath=/root/j2sdk1.4.2_09/easyIO

When I try to "import easyIO.*;" it says that the package dont exist.
And the classpath don't save it self, just as the PATH.

Then over to zip.
In terminal I get the usual list when I type zip.
But when I try to compress something into zip, I get a message box
saying that zip issnt in my PATH, but it is.

Thanks for any reply, and sorry for bad english!

Last edited by Penetal; 11-03-2005 at 03:30 PM.
 
Old 11-03-2005, 04:35 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Are you using an IDE and if so are you setting the classpath of the project?
 
Old 11-04-2005, 02:44 AM   #3
Penetal
LQ Newbie
 
Registered: Nov 2005
Location: Oslo, Norway
Posts: 5

Original Poster
Rep: Reputation: 0
Say what?

IDE? Do u mean the HDD? Well in that case I have one IDE disk, and three S-ATA's.
The OS are on the IDE, but this is problebly not what you are talking about...

Sorry?
 
Old 11-04-2005, 03:23 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi!

For Java, take a look in here:

http://www.linuxquestions.org/questi...40#post1841740

By IDE, I think he meant Integrated Development Environment, such as Eclipse, Netbeans, DrJava, BlueJ, Anjuta, Visual Studio, KDevelop, Dev-C++ ...well you get the idea
 
Old 11-04-2005, 01:07 PM   #5
Penetal
LQ Newbie
 
Registered: Nov 2005
Location: Oslo, Norway
Posts: 5

Original Poster
Rep: Reputation: 0
I have det standear "j2sdk1.4.2_09" pack.... Again little confused....
Thanks for the link I'm going to check it out now.....

*edit*

Again thanks for the link, now java & javac works just fine....

easyIO it not so easy then.... :P

In my "~/.bashrc" file I now have added:

export PATH=$PATH:/usr/local/java/j2sdk1.4.2_09/bin
export classpath=/usr/local/java/j2sdk1.4.2_09/easyIO/easyIO.jar.;

Eaven so I get the message:

WINDOWID=56623166
XCURSOR_SIZE=
XCURSOR_THEME=default
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic
_=Ja.java
classpath=/usr/local/java/j2sdk1.4.2_09/easyIO/easyIO.jar.
Undead:/usr/local/java/j2sdk1.4.2_09# javac Ja.java
Ja.java:1: package easyIO does not exist
import easyIO.*;
^
1 error
Undead:/usr/local/java/j2sdk1.4.2_09#

The classpath is there, but it's not working....

Here are the link to the packeage of easyIO I'm using:
http://www.home.no/iswt-thomas/easyIO.zip

Last edited by Penetal; 11-04-2005 at 01:28 PM.
 
Old 11-05-2005, 08:10 AM   #6
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
have a look at the java tutorial. Because the file is easyIO.zip , it doesn't mean that a package easyIO exists !

If i have a jar name test.jar, my package(s) inside the jar could be :
org.linuxquestions.test, so i would import org.linuxquestions.test. Have a look at the javadoc of the library easyIO.

For your classpath i would add the part in bold :
export classpath=/usr/local/java/j2sdk1.4.2_09/easyIO/easyIO.jar:.
 
Old 11-05-2005, 08:33 AM   #7
Penetal
LQ Newbie
 
Registered: Nov 2005
Location: Oslo, Norway
Posts: 5

Original Poster
Rep: Reputation: 0
That classpath got me the same error.....
 
Old 11-05-2005, 11:24 AM   #8
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Use an IDE and when you get more comfortable with the classpath, try again with whatever text editor you are using.
It is not difficult, but i really don't know how you are doing it and getting it not working.
 
Old 11-05-2005, 01:33 PM   #9
Penetal
LQ Newbie
 
Registered: Nov 2005
Location: Oslo, Norway
Posts: 5

Original Poster
Rep: Reputation: 0
Remember that I'm a newbie, and don't speak english wery well.
You have to explain it to a idiot here :P

Dont steel havn't got what u mean by IDE ?_?
 
Old 11-05-2005, 02:03 PM   #10
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
I mean by IDE a graphical text editor to help you manage projects in a programming language.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mozilla & Java & Flash - nothing works Beju Linux - Newbie 1 08-25-2005 04:49 PM
Installing & Upgrading & PATH OH MY! Rivitir Slackware 8 08-18-2005 03:34 PM
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Java & JOGL & udev install on Fedora probs! striderwho Linux - Newbie 0 01-30-2005 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration