Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

NEED JAVA HELP ASAP!!!   I WILL COMMIT SEPPUKU IF YOU IGNORE THIS POST!!!

Thread view: 
Danno - 12 Jun 2006 23:03 GMT
Haha. Just kidding.

I just wanted to zing all the summer students and overly-sensitive
posters that have been coming into comp.lang.java.programmer as of
late. ;)

I did have a question that you can answer at your leisure.  I am
running JDK 6.0 Beta and all is rocking.  I love it.  There are times
though where I have to do things that require JDK 5.0, like build a
huge open source project that requires 5.0 without doing a find and
replace in every ant script that it has a <javac> tag without a source
attribute.  The problem is that java.sun.com only offers java
installers for Windows that assimilate fully into the OS, and I don't
want to install 5.0 fully like that.  All I wan't is the java binaries
just so I can do a simple build.   Whatever happened to the zip files
that you can open and automatically have java.

I was thinking of going to another Windows machine with 5.0 installed
and copying the java (5.0) directory over to my machine and make
reference to that java whenever I need 5.0.  I don't know if anyone has
experience with that or not, or if it works.  I do also have cygwin,
and maybe I can install 5.0 on that with 6.0 is installed in my windows
OS.

Anyways, just thought I'd ping here to see if anyone has a solution.
The open source project in question, in case you are wondering is
netbeans. ;)
Timothy Bendfelt - 12 Jun 2006 23:26 GMT
The JDK minus plug-in/webstart does not require the installation linkages.
I typically install a copy of each version that I need and then
under cygwin I create an alias command for each in my .bashrc file to
set up an environment appropriate to the project I am building

alias java5="export JAVA_HOME=/cygdrive/c/jdk1.5.0_06;export
PATH=$JAVA_HOME/bin:$PATH"

alias java6="export JAVA_HOME=/cygdrive/c/jdk1.6.0;export
PATH=$JAVA_HOME/bin:$PATH"

makes it easy to jump around.

-- Tim

> Haha. Just kidding.
>
[quoted text clipped - 23 lines]
> The open source project in question, in case you are wondering is
> netbeans. ;)
Chris Uppal - 13 Jun 2006 09:52 GMT
> Haha. Just kidding.

;-)

> There are times
> though where I have to do things that require JDK 5.0, like build a
[quoted text clipped - 5 lines]
> just so I can do a simple build.   Whatever happened to the zip files
> that you can open and automatically have java.

You could try just copying, but I think you'll find it easier if you just
ensure that the %Path% (for Windows) or $PATH (for Unix-like systems) is set to
point to the JDK/JRE in question.  I'm not certain that works for *X systems
(but I can't imagine why it should fail), but I know it works correctly for
Windows. (No need for Cygwin, in fact Cygwin makes it a little more tricky
since you have to get both the %Path% and $Path correct...)

   -- chris
lordy - 13 Jun 2006 17:12 GMT
> (No need for Cygwin, in fact Cygwin makes it a little more tricky
> since you have to get both the %Path% and $Path correct...)

Cygwin converts %PATH% to $PATH automagically.

Lordy
Chris Uppal - 14 Jun 2006 09:54 GMT
[me}
> > (No need for Cygwin, in fact Cygwin makes it a little more tricky
> > since you have to get both the %Path% and $Path correct...)
>
> Cygwin converts %PATH% to $PATH automagically.

Autmagically, but not -- in my experience -- adequately.  It's a fair time
since I started using Cygwin so I can't remember exactly what was going wrong.
I /think/ it was something to do with Cygwin's habit of re-exporting directory
names in its own /cygdrive/c/... format to non-Cygwin executables -- which
don't understand that.

Anyway, I now manage Cygwin's path independently from the Windows path(s), and
everything works fine (at least for my purposes).

   -- chris
Patricia Shanahan - 14 Jun 2006 14:09 GMT
> [me}
>>> (No need for Cygwin, in fact Cygwin makes it a little more tricky
[quoted text clipped - 11 lines]
>
>     -- chris

The problem I hit was Cygwin providing absolute paths in the form
"/home/Patricia Shanahan/college/research", which did not work as a java
classpath.

I found the very useful cypath command.

For example, in a Cygwin ksh script,

me="`cygpath --mixed \"$_\"`"
dir=`dirname "$me"`

sets dir to the directory containing the script, in a form that can be
part of a java classpath.

Patricia


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.