Java and Javac problems


 
Thread Tools Search this Thread
Operating Systems Solaris Java and Javac problems
# 8  
Old 10-13-2012
Quote:
Originally Posted by jim mcnamara
That is an LD_LIBRARY_PATH issue.
What makes you feel it is ?
LD_LIBRARY_PATH is unset by default under Solaris and should stay that way unless inside specific wrapper scripts.
Quote:
Then in your code script to run your new java code try:
Code:
export LD_LIBRARY_PATH=usr/jdk/instances/jdk1.7.0/:${LD_LIBRARY_PATH}

This is both incorrect (you are missing a leading slash) and useless (there are no libraries in the jdk1.7.0 directory).

---------- Post updated at 15:06 ---------- Previous update was at 15:01 ----------

Quote:
Originally Posted by Fingerz
So can anyone point me to the logic behind it all, I mean theres has to be some kind structure yes?
Sure there is a structure.
If you want the jdk1.7 to be your default java environment, just put both of these lines in your .profile or .bash_profile
Code:
PATH=/usr/jdk/instances/jdk1.7.0/bin:$PATH
export JAVA_HOME=/usr/jdk/instances/jdk1.7.0

logout and login again and you are set.

---------- Post updated at 15:21 ---------- Previous update was at 15:06 ----------

Quote:
Originally Posted by jim mcnamara
Windows is derived from UNIX
Windows has very little in common with Unix and is quite unlikely to include anything derived from Unix code outside some tcp/ip utilities borrowed from BSD.
# 9  
Old 10-13-2012
I disagree - not that it really matters.
Quote:
Windows has very little in common with Unix and is quite unlikely to include anything derived from Unix code outside some tcp/ip utilities borrowed from BSD.
DOS was developed on XENIX and borrowed a lot of the underlying architecture.
Windows - up until NT - was completely layered on top of DOS 16 bit. The NT kernel continued some of UNIX-derived stuff. As WOW. I has all gone away with Windows 7.

And you are correct about JAVA_HOME. I though the OP had set it. The install seemed to be odd.

But. The point was that Solaris requires UNIX knowledge, windows requires almost no knowledge about what is going on behind the scenes. Windows power users are really well-advised to use cygwin or something like ubuntu, not Solaris, as a first time jaunt into UNIX.
# 10  
Old 10-13-2012
Ill advised off topic post follows:

Isn't NT based on VMS? with the BSD network stack?
# 11  
Old 10-13-2012
Quote:
Originally Posted by Skrynesaver
Isn't NT based on VMS?
That depends on how you define "based on".
Microsoft hired one of the VMS main architects (David Neil Cutler) to redesign Windows and Windows NT was the result. NT was actually a pun: you add +1 to each letter of VMS and you get WNT.
Quote:
with the BSD network stack?
Unlikely to have the whole BSD network stack but some parts of it was based on BSD licensed code. Nowadays, I guess only things like ftp, tracert and the likes might still have BSD code. See this page for details.

---------- Post updated at 18:48 ---------- Previous update was at 17:50 ----------

Quote:
Originally Posted by jim mcnamara
DOS was developed on XENIX and borrowed a lot of the underlying architecture.
"borrow" is lighter than "derived from" so DOS might indeed have borrowed some Unix concepts, although I would state it really borrowed most of its design from CP/M. XENIX, originally a Unix version 7 implementation, was already a multi-task, multi-user OS with a single hierarchical file system. DOS was definitely missing all of these features.
Quote:
And you are correct about JAVA_HOME. I though the OP had set it. The install seemed to be odd.
Got it. You confused LD_LIBRARY_PATH and JAVA_HOME.
This User Gave Thanks to jlliagre For This Post:
# 12  
Old 10-19-2012
This is where my points about the origins and development of DOS come from:
XENIX -- Microsoft Short-lived Love Affair with Unix

What this huge page says in small part:
Basically from 1980 - after DOS had been put together - DOS and XENIX started on toward full compatibility. A lot of xenix was brought into DOS as memory and disk become available for machines in the early 1980's.

To be correct DOS started with Altair.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

set javac classpath

I have several jar files in a specific folder, but I can't get javac to understand it. How do I set the classpath for javac. It is NOT the same classpath as the java command. And it's not enough with one jar file. I have several. (1 Reply)
Discussion started by: locoroco
1 Replies

2. UNIX for Dummies Questions & Answers

Installing Java Problems

Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies

3. UNIX for Dummies Questions & Answers

piping with javac command

how to i use javac on a file after searching for it? example: find . -name '*.java' -size -24 -links -2 -atime -4 what would happen if "find" found >1 .java files? also, i'm a little confused on the -size property... mix up between -2 and +2... what's the difference? (1 Reply)
Discussion started by: quipy
1 Replies
Login or Register to Ask a Question