Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Red Hat fun! a.k.a.-Hey, Barry!  RSS feed

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having difficulty getting BlueJ installed under redHat 8.0. I have installed j2sdk-1.4.1.01.rpm.bin and I can see that java has a man page now, but I can't get it to run in extracting BlueJ. Any ideas?
Here are some results from terminal:
[jgardner@jgardner Downloads]$ java -version
bash: java: command not found
[jgardner@jgardner Downloads]$ which java
/usr/bin/which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/jgardner/bin)
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't really know, but maybe that's your problem...
Problem in installing Java on Linux
 
jeff gardner
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I'm getting somewhere but the terminal froze up on me when I did the -x option...
[jgardner@jgardner bin]$ ./jar bluej-122.jar
Illegal option: b
Usage: jar {ctxu}[vfm0Mi] [jar-file] [manifest-file] [-C dir] files ...
Options:
-c create new archive
-t list table of contents for archive
-x extract named (or all) files from archive
-u update existing archive
-v generate verbose output on standard output
-f specify archive file name
-m include manifest information from specified manifest file
-0 store only; use no ZIP compression
-M do not create a manifest file for the entries
-i generate index information for the specified jar files
-C change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name and the archive file name needs to be specified
in the same order the 'm' and 'f' flags are specified.
Example 1: to archive two class files into an archive called classes.jar:
jar cvf classes.jar Foo.class Bar.class
Example 2: use an existing manifest file 'mymanifest' and archive all the
files in the foo/ directory into 'classes.jar':
jar cvfm classes.jar mymanifest -C foo/ .
[jgardner@jgardner bin]$ ./jar -x bluej-122.jar
 
jeff gardner
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, things are getting wierd...
I tried another jar extraction with the -c option. WOW! My machine freaked out, printed all kinds of chars in the terminal, then finished up by printing xtermxtermxtermxterm, over and over. I guess I'll keep messing with it...nothings broken yet. If this were windows I probably would've had to reload the OS by now!
 
jeff gardner
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I think I'm doing something wrong. I executed the following:
[jgardner@jgardner bin]$ ./jar -x /usr/bin/java/bluej-122.jar
(cursor moves here, no further action...)
and it's just sitting there. I don't think I need to specify a directory for jar to extract to, do I?
 
jeff gardner
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yay!!! I got it by fooling around. The magic command was ./java -jar /usr/java/bluej-122.jar
everything is looking great, and I'm feeling a lot better about redHat!! Thanks!!!
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's it, but you should still make sure
that your java environment is set up correctly.
You should be able to do "java -version" from
a non-root user, and start BlueJ with "bluej" too.
Make a non-root user, "jeff" say, there must be some administration tool to do that.
What Window Manager are you using?
Log in to that new user.

What does it say when you do "env" from a terminal emulation from within that window manager?
-Barry
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!