Home arrow static arrow Java Programming [Archive] - Linux settings
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Linux settings
2 Duke Stars available
This topic has 5 replies on 1 page.

Posts:15
Registered: 4/21/02
Linux settings  
Jun 20, 2004 12:08 PM



 

I'm about to install j2sdk1.4.2_04 on Mandrake. Till now I've used java on Windows where the Path in the *.bat file
signal to the system where is the bin library.
Then I can type > appletviewer helloworld.html (where this file is in another directory...).In linux when I type >:/appletviewer ..... I 've to open the terminal in the bin directory to get "appletviewer"....and how can I reach "hellowworld.htm" tha is in another directory ????
Many thanxs.
 

Posts:11,200
Registered: 7/22/99
Re: Linux settings  
Jun 20, 2004 12:30 PM (reply 1 of 5)



 
and how can I reach "hellowworld.htm" tha is in another directory ????

You either refer to it with a path (relative or absolute), or go to that directory with the "cd" command. Just like in the MSDOS prompt on windows.

There's a tutorial on using Linux and the usual shell here:
http://www.linux.org/lessons/beginner/toc.html
Start from lesson three since you already have it installed. It's important to know how to move around the directory structure in the shell and some text based programs even if you intend to use only the graphical user interface.

You wrote you are using Mandrake, by any chance is it Mandrake 10? Mandrake 10 uses Linux 2.6 but only 2.4 is supported by Sun so far ...
 

Posts:1,657
Registered: 1/8/98
Re: Linux settings  
Jun 20, 2004 4:01 PM (reply 2 of 5)



 
Yes, but Java just screams with a 2.6 kernel - the added benefits of the new threading and memory management modules are pretty awesome! It may not be officially supported (yet), but it certainly does work...
 

Posts:11,200
Registered: 7/22/99
Re: Linux settings  
Jun 20, 2004 10:59 PM (reply 3 of 5)



 
Oh, I only remembered seeing someone report there's a problem :) But I suppose there would have been more than one if it didn't work... IIRC it had something to do with the NIO api
 

Posts:15
Registered: 4/21/02
Re: Linux settings  
Jun 21, 2004 1:48 AM (reply 4 of 5)



 

I've read (...about...)..but I've not found the Dos equivalent of >>
set PATH=c:\j2sdk1.4.0\bin;%PATH%

AS you do to execute "appletviever"...?
 

Posts:11,200
Registered: 7/22/99
Re: Linux settings  
Jun 21, 2004 7:03 AM (reply 5 of 5)



 
I've read (...about...)..but I've not found the Dos
equivalent of >>
Isn't the DOS equivalent of ">>" just ">>" ? Or does DOS support only ">" ?

set PATH=c:\j2sdk1.4.0\bin;%PATH%

AS you do to execute "appletviever"...?
The command you use for setting environment variables depends on the shell you use. The most common shell in Linux is bash. In bash you'd write
export PATH=/usr/java/j2sdk1.4.0/bin:$PATH
 
This topic has 5 replies on 1 page.