On Mon, Jun 16, 2003 at 11:30:50AM +0530, Shanu wrote:
>
> Hi Paul,
> Following script can be used to set the path dynamically..
>
> #!/bin/tcsh
> set classpath=.
> set alljars=""
> foreach i (`find . -name "*.jar"`)
> set alljars=($
Hi Paul,
Following script can be used to set the path dynamically..
#!/bin/tcsh
set classpath=.
set alljars=""
foreach i (`find . -name "*.jar"`)
set alljars=($i":"$alljars)
end
set CLASSPATH=($CLASSPATH$alljars$classpath)
echo $CLASSPATH
export $CLASSP
write a short script using find and sed to do what ant does.
4) You can build jar files which aggregate various jars into a larger
jar file.
5) You can copy commonly used libraries into your $JAVA_HOME/jre/lib/ext
directory (this is the path for extensions), so that they&
On Sat, Jun 14, 2003 at 08:12:23PM -0400, Paul Tremblay <[EMAIL PROTECTED]> wrote:
> For example, I have installed xalan. In my ./bashprofile, I have:
> export CLASSPATH=$CLASSPATH:/home/paul/java/jars/xalan-j_2_3_1/bin/xsltc.jar
> export CLASSPATH=$CLASSPATH:/home/paul/java/jars/xalan-j_2_3_1/bin/
I just installed java 1.41 on my linux box. By default, Mandrake
installs kaffee, and I've had problems with kaffee in the past. As with
the last time, installing java is almost too easy. No builds, no make
installs--it's just there!
However, I wondered if someone could help me with an easy way to
I use Slackware but it should be the same for any linux if you use bash
as your shell.
add somthing like:
export PATH=$PATH:/path/to/java/bin
to your .bash_profile or /etc/profile
Andrea Aime wrote:
Kent E wrote:
I know I did this once.. but it was in mandrake… now I want to know
how to
Kent E wrote:
I know I did this once.. but it was in mandrake… now I want to know how
to do it in redhat..???
It's the same I guess. In your home look for .bash_profile (.profile on
Suse) and set the path in it so that at each login the path will be
set (and remember to logout and login ba
On Thu, Jun 05, 2003 at 04:59:40PM +0800, Kent E wrote:
> I know I did this once.. but it was in mandrake. now I want to know how
> to do it in redhat..???
Please RTFM. There are heaps of books that will help you getting started
with Linux. The RedHat manual is also very helpful. You get a printed
I know I did this once.. but it was in mandrake… now I want to know how to do
it in redhat..???
Kent E.
On Mon, 9 Apr 2001, Aaron Brashears wrote:
> Hm, interesting. It's the only way I've found to keep things straight
> when using ssh. I don't actually run any scripts in my .bashrc - the
> contents are:
>
> . ~/.env
>
> And .env sets the environment.
I use ssh daily and don't have any problems
On Mon, Apr 09, 2001 at 12:49:56PM -0500, Joi Ellis wrote:
> On Mon, 9 Apr 2001, Aaron Brashears wrote:
> >
> > $ cat .bash_profile >> .bashrc
> > $ rm .bash_profile
> > $ ln -s .bashrc .bash_profile
>
> No, no no. Don't DO this! Now you're running everything multiple times!
Hm, interesting.
On Mon, 9 Apr 2001, Aaron Brashears wrote:
> Be sure to copy anything important out of .bash_profile into
> .bashrc. Of course, if you just append the contents, it will save some
> time.
Uh. This is NOT a good idea. .bashrc is run whenever a child shell
is launched. IE every time a command yo
shrc
$ rm .bash_profile
$ ln -s .bashrc .bash_profile
Now, to actually set your environment, add the following lines to your
.bashrc in your favorite editor.
export JAVA_HOME=/usr/java/jdk1.3
export PATH=$PATH:$JAVA_HOME/bin
Don't forget the 'export' in your script or the environme
nge only the personal profile of specific
user accounts. The name varies with the user's shell, common locations
are .bash_profile and .profile.
> Your new PATH should look like this
>
> PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3/bin"
>
> save this file and reboot you
>save this file and reboot your system.
Why would you reboot your system just because you change your shell
configuration file..?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact
You can either set the path in the system boot up script or better still if
you set it in your profile file. In linux your profile files will be in
your home directory for instane if your login userid is liuchao, then your
home directory will be /home/liuchao. look for profiles by typing ls -a
this
file you are going to see a line that
looks like:
PATH="$PATH:/usr/X11R6/bin"
NOTE: your path might look different from this.
Anyway, you should put /usr/java/jdk1.3 in your path.
Your new PATH should look like this
PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3/bin"
save
I have installed JDK1.3.0 in directory
/usr/java/jdk1.3. and I use echo $PATH, the $JAVA_HOME have not been
set.
I set $PATH=/usr/java/jdk1.3/bin every
time when I login in my computer. How can I do to let $PATH have been set
automatic everytime when I login in my
linux
t JAVA_HOME
when you launch bash what does 'echo $JAVA_HOME' give you. Also try putting to
'echo IT WORKED" lines in your /etc/bashrc to see if it worked. I use a .bashrc
myself and it works fine.
> Also, when I shutdown the server, it requires /sbin/./shutdown -h
I have Tomcat 3.1 running standalone on a RedHat 6.2 server(yeah).
However, on a Redhat 7.0 server, I having difficulty setting the path for
JAVA_HOME after installing JDK1.3
I can't cd to $JAVA_HOME.
The .bash_profile is as follows:
# .bash_profile
# Get the aliases and functions
if
First all make sure you have jdk1.1.7_v3 installed (glibc2.1
compliant).
If you are trying ot run AnyJ with the 1.1.7 jre, I suggest
IBM's JRE, its much MUCH faster running AnyJ, but if you are
settings up the JDK to work with projects, I would suggest
using blackdown's 1.1.7 or 1.2 jdk, I've had
Excuse me, but I'm new in this.
I'm still configuring the JDK 1.1.7 in a
computer with Redhat 6.0.
What environment variables should I set and how
should I do it?
I'm trying to configure AnyJ but when try to
execute it I get the error
"Class not found java.lang.Thread"
Thanks
Hector Gibra
Bruno Boettcher wrote:
Hello,
a friend just showed me an example where to load a given set of
RessourceBoundles he prefixed the baseName of the boundle with a (relative)
path...
Now i ran back to my computer and made some tests and it doesn't
work
for me.. i am using jdk1.2pre2 on
Hello,
a friend just showed me an example where to load a given set of
RessourceBoundles he prefixed the baseName of the boundle with a (relative)
path...
now this astonished me a lot since i never managed to get my programs to load
their ressources from elsewhere as the current directory
On Thu, 7 Oct 1999 19:22:23 -0500, Mike Tinnes wrote:
>
>I get the following error while trying to run a servlet that utilized the
>awt classes.. "no awt in shared library path". I'm using RH6.0, Apache JServ
>1.1b1 and jdk117v3. I'm assuming the VM needs the
I get the following error while trying to run a servlet that utilized the
awt classes.. "no awt in shared library path". I'm using RH6.0, Apache JServ
1.1b1 and jdk117v3. I'm assuming the VM needs the LD_LIBRARY_PATH set to the
awt shared libraries,
what file should I modify to add jdk1.2 into my environment?
also what is the correct syntax for adding java_home
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ts work on Linux fine, but not this one
> which use java.awt package.
>
> Here is exception message coming from Apache error_log:
>
> /usr/local/java/jdk117_v3/bin/../lib/i586/green_threads/libawt.so: undefined
> symbol: XtShellStrings (libawt.so)
> java.lang.UnsatisfiedLi
Apache error_log:
/usr/local/java/jdk117_v3/bin/../lib/i586/green_threads/libawt.so: undefined
symbol: XtShellStrings (libawt.so)
java.lang.UnsatisfiedLinkError: no awt in shared library path
at java.lang.Runtime.loadLibrary(Runtime.java)
at java.lang.System.loadLibrary(System.java
in shared library path
java.lang.UnsatisfiedLinkError: no awt in shared library path
at java.lang.Runtime.loadLibrary(Runtime.java)
at java.lang.System.loadLibrary(System.java)
at
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:394)
at
Thankyou very much for your contributions to solve my problem
You are write I need to do the difference bettwen PATH and CLASSPATH
now I have a CLASSPATH in my .bash_profile and javax.swing can be imported.
Your help is usefull thanks again!
Sincerly.
Bernardo
y problem is whith the Simply whith the PATH. Bernardo
.
.
.
__
Dr. Bernardo Paz Betancourt
TROPANDES Project
casilla 415
tel/Fax: (591) 2 41.18.34
http://www.megalink.com/tropandes
La Paz - Bolivia
-
You want to put the jar and zip files in your CLASSPATH, not your PATH.
PATH is where the shell looks for binary executables. CLASSPATH is where
java looks for bytecode class files.
-Kelly
--
Kelly A. Campbell Commerce Core Engineer
<[EMAIL PROTECTED]> Channe
maybe try putting swing.jar in your CLASSPATH. that should fix your
problem.
On Tue, 15 Jun 1999, Bernardo Paz Betancourt wrote:
> Good morning:
>
> Could some budy please tellme which is the correct PATH for use Swing
> libraries whith Java?
> I download JAVA JDK 1.1.7 and afte
he appears to have put the swingall.jar in
his PATH and not his CLASSPATH.
--
Justin Lee | Contemporary philosophy seems to satisfy
JEDI | Assumptions in theology that only get them by
--
To UNSUBSCRIBE, email to [EMAIL PR
Hi Bernardo & all,
Bernardo Paz Betancourt wrote:
> Java works fine, but when I use in my programs
> import javax.swing.*
>
> I recive the next message at the compilation:
> "Package java.swing not found in import"
First you say you import javax.swing and then the r-or message says
Good morning:
Could some budy please tellme which is the correct PATH for use Swing
libraries whith Java?
I download JAVA JDK 1.1.7 and after the Swing-1.1 library (the exemple
SwingSet works fine too)
Java works fine, but when I use in my programs
import javax.swing.*
I recive the next
Hope this helps.
-Owais
--Original message--
Trying to compile a java program for the first time on linux using the
following:
$ CLASSPATH=~/java:/usr/lib/jdk1.1.5/lib
$ export CLASSPATH
$ javac Console.java
No library path set.
Cannot find essential class
Hi
I just heard about the Java port to linux and I downloaded
the Java 2 version yesterday. I am running RedHat Linux 5
When I try to compile a simple program, HelloWorld, I am
getting a message: No library path set. and core is dumped.
The instructions specified that I didn't have to se
On Fri, 21 May 1999 05:29:19 -0400, Patrick Tsoi-A-Sue wrote:
>Trying to compile a java program for the first time on linux using the
>following:
>
>$ CLASSPATH=~/java:/usr/lib/jdk1.1.5/lib
>$ export CLASSPATH
>$ javac Console.java
>No library path set.
>Cannot find es
Trying to compile a java program for the first time on linux using the
following:
$ CLASSPATH=~/java:/usr/lib/jdk1.1.5/lib
$ export CLASSPATH
$ javac Console.java
No library path set.
Cannot find essential class 'java/lang/Object' in class library ... aborting.
$
How do I set li
Hi,
There is no need to set the CLASSPATH if u are using the BlackDown's jdk
and u installed it normally. All u need to do is to set the PATH to where
the java* binaries are present. u might need a CLASSPATH if u plan to use
swing or some 3rd party uitlity classes. I think tha
I'm not sure but this message means $JAVA_HOME/bin isn't into PATH.
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$JAVA_HOME/lib/classes.zip
where $JAVA_HOME is the absolute path to the jdk directory
greetings
Carlos Alberto Roman Zamitiz
Departamento de Ingenieria en Computacion, Facultad de
I'm haveing trouble useing javac. It says "No library path set." can
any one help me?
_
DO YOU YAHOO!?
Get your free @yahoo.com address at http:/
mpile and i'm sure it has to do with the
> path but I haven't been able to solve it. When I compile a .java file
> that will create another someother .class file when the constructor is
> called I get the error
>
> class whatever not found in type declaration
>
> If
I've got a problem when I compile and i'm sure it has to do with the
path but I haven't been able to solve it. When I compile a .java file
that will create another someother .class file when the constructor is
called I get the error
class whatever not found in type declaration
Hi,
I can't understand why javac keeps telling me "No library path set",
please help me. It was running fine under Redhat5.0. I'm using Redhat5.1
and the 1.1.6 glibc v2 of the jdk.
Thanks,
Shin
In message <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
[1.1.5v7] does not work with the following error message (or
something very similar) when I try and compile a test class with
javac test.class:
Library path not set.
Patrick,
Hmm, I wonder where this is comin
test.class:
Library path not set.
I have set PATH to point at the appropriate directory and have tried setting
and not setting the CLASSPATH variable.
Is there something I am doing wrong?
Could it be I need to upload the latest glibc libraries?
Is there an other environment variable (for example
49 matches
Mail list logo