Sponsored Content
Operating Systems Solaris Setting up Java environment on VMware Solaris 10 Post 302771906 by Panzerkampfwagn on Friday 22nd of February 2013 05:37:47 AM
Old 02-22-2013
Hi,

srry for beeing late.

I told u totally crap.. Thats the right way:

get as an example jdk1.6.0_26 on ur system:

1. download jdk_6u26-solaris-sparc.tar.Z (32Bit)
download jdk-6u26-solaris.sparcv9.tar.Z (64Bit)

2.uncompress tar.Z (uncompress *.tar.Z), maybe put these 2 files in a extra directory

3. install with pkgadd -d .

4.its installed, but u must relink (all java versions are under /usr/jdk/)

---> unlink /usr/bin/java
---> ln -s /usr/jdk/jdk1.6.0_26 /usr/bin/java
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting environment variables ???

Hello, I want to set some environment variables with this script: ip=$@ echo Remote Computer: $ip PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0" export PERLDB_OPTS PERL5LIB=/opt/komodo export PERL5LIB echo PERLDB_OPTS: $PERLDB_OPTS echo PERL5LIB: $PERL5LIB But it... (5 Replies)
Discussion started by: Gargamel
5 Replies

2. Shell Programming and Scripting

Setting environment variable on a remote solaris machine using shell script

Hi, I am trying to set environment variable on a remote machine. I want to do it by running a shell script Here's what I am doin rsh <remote-hostname> -l root "cd /opt/newclient; . ./setp.sh" In setp.sh, I have ############################# cd ../newlib; export... (1 Reply)
Discussion started by: eamani_sun
1 Replies

3. Programming

Binary not getting executed from Java on Solaris environment

In the Java programme, I am calling function, "Runtime.getRuntime().exec( cmdarray ); " with the array of arguments in which first argument is the binary(C-executable) file and argv1,argv2 and so on. This will be executed on Sun OS system.. I can execute using "sh -c cmdarray" on the shell... (0 Replies)
Discussion started by: shafi2all
0 Replies

4. Programming

Setting Environment variable..!

Hi, I already have one CPP program which invokes the C program.And the C program contains whole function definitions..!This is a working program..I have to enable the logs in both CPP as well as in the C program ..!So I am reading the enviornmental variable log path from the CPP and doing the... (2 Replies)
Discussion started by: Kattoor
2 Replies

5. Shell Programming and Scripting

Problem setting environment...

Hi All I'm attempting to automate the process of setting the DISPLAY environment variable when logging on (sourcing the .cshrc). I have a mixture of linux and solaris servers and this comnand: who -m | awk '{ print $6}' | tr -d '()' seems to work on all the servers. I want... (2 Replies)
Discussion started by: huskie69
2 Replies

6. Programming

Uncompress a gzip and bzip file using java on unix solaris environment

Hi, I need to uncompress a gzip and bzip file using java on unix solaris environment. I also need to retreive the header information of the file inorder to differentiate between gzip and bzip file. Please help Pooja (0 Replies)
Discussion started by: wadhwa.pooja
0 Replies

7. UNIX for Dummies Questions & Answers

Setting up your environment

Hi I am new to Solaris and was just given my id and need to setup my environment, what do i need to do to run certain commands without putting in the complete path. How do I create my .profile, I do not see under my login? Any help would be greatly appreciated. (5 Replies)
Discussion started by: sa_ken
5 Replies

8. Homework & Coursework Questions

Redhat LINUX 5 setting In VMWARE

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have installed Redhat Linux 5 in VMWARE and would need to access through putty form the same desktop or... (2 Replies)
Discussion started by: SasiWipro
2 Replies

9. SCO

Moving SCO Virtual Machine in VMWare Environment: Critical Licensing Error Messages

Some years ago our company chose to run a critical proprietary app under SCO Unix. My predecessor tried to move A SCO Unix virtual machine from our dedicated VMWare environment to a shared Cloud VMWare environment. My predecessor received licensing messages from these critical servers so... (2 Replies)
Discussion started by: timfox1234
2 Replies
COMPAT_SVR4(8)						    BSD System Manager's Manual 					    COMPAT_SVR4(8)

NAME
compat_svr4 -- setup procedure for running SVR4/iBCS2 binaries compat_svr4_32 -- setup procedure for running 32-bit SVR4/iBCS2 binaries DESCRIPTION
NetBSD supports running SVR4/iBCS2 binaries. This code has been tested on i386 (with binaries from SCO OpenServer and XENIX), m68k (with binaries from AMIX) and sparc (with binaries from Solaris) systems. Most programs should work, but not ones that use or depend on: kernel internal data structures the /proc filesystem the ticotsord loopback RPC mechanism (NIS uses this) sound and video interfaces threads (ttsession uses threads) the streams administrative driver The SVR4 compatibility feature is active for kernels compiled with the COMPAT_SVR4 option enabled. Since support for ELF executables is included only if the kernel is compiled with the EXEC_ELF32 or EXEC_ELF64 options enabled, kernels which include COMPAT_SVR4 should also typ- ically include EXEC_ELF32 (for 32-bit ELF support) and/or EXEC_ELF64 (for 64-bit ELF support). Another compatibility feature is COMPAT_SVR4_32, which allows the execution of 32-bit SVR4 binaries on a machine with a 64-bit kernel. This requires EXEC_ELF32 and COMPAT_NETBSD32 options as well as COMPAT_SVR4. It is configured the same way as COMPAT_SVR4 but uses the /emul/svr4_32 directory instead of /emul/svr4. But typically, /emul/svr4_32 can be made to point to /emul/svr4 if the operating system donating the libraries has support for both 32-bit and 64-bit binaries. Execution of 32-bit SVR4 binaries on a machine with a 32-bit kernel uses COMPAT_SVR4, not COMPAT_SVR4_32. Most SVR4 programs are dynamically linked. This means that you will also need the shared libraries that the program depends on and the run- time linker. Also, you will need to create a ``shadow root'' directory for SVR4 binaries on your NetBSD system. This directory is named /emul/svr4. Any file operations done by SVR4 programs run under NetBSD will look in this directory first. So, if a SVR4 program opens, for example, /etc/passwd, NetBSD will first try to open /emul/svr4/etc/passwd, and if that does not exist open the 'real' /etc/passwd file. It is recommended that you install SVR4 packages that include configuration files, etc under /emul/svr4, to avoid naming conflicts with possible NetBSD counterparts. Shared libraries should also be installed in the shadow tree. The simplest way to set up your system for SVR4 binaries is: 1. Make the necessary directories: (me@netbsd) mkdir -p /emul/svr4/{dev,etc} (me@netbsd) mkdir -p /emul/svr4/usr/{bin,lib,ucblib} (me@netbsd) mkdir -p /emul/svr4/usr/openwin/{bin,lib} (me@netbsd) mkdir -p /emul/svr4/usr/dt/{bin,lib} 2. Copy files from an svr4 system: (me@svr4) cd /usr/lib (me@svr4) tar -cf - . | rsh netbsd 'cd /emul/svr4/usr/lib && tar -xpf -' (me@svr4) cd /usr/ucblib (me@svr4) tar -cf - . | rsh netbsd 'cd /emul/svr4/usr/ucblib && tar -xpf -' If you are running openwindows: (me@svr4) cd /usr/openwin/lib (me@svr4) tar -cf - . | rsh netbsd 'cd /emul/svr4/usr/openwin/lib && tar -xpf -' (me@svr4) cd /usr/dt/lib (me@svr4) tar -cf - . | rsh netbsd 'cd /emul/svr4/usr/dt/lib && tar -xpf -' 3. You will also probably need the timezone files from your Solaris system, otherwise emulated binaries will run on UTC time. (me@netbsd) mkdir -p /emul/svr4/usr/share/lib/zoneinfo (me@netbsd) mkdir -p /emul/svr4/etc/default (me@svr4) cd /usr/share/lib/zoneinfo (me@solaris) tar -cf -. | rsh netbsd 'cd /emul/svr4/usr/share/lib/zoneinfo && tar -xpf -' (me@netbsd) echo TZ=US/Pacific > /emul/svr4/etc/default/init 4. Set up the configuration files and devices: (me@netbsd) cd /usr/share/examples/emul/svr4/etc (me@netbsd) cp netconfig nsswitch.conf /emul/svr4/etc (me@netbsd) cp SVR4_MAKEDEV /emul/svr4/dev (me@netbsd) cd /emul/svr4/dev && sh SVR4_MAKEDEV all As the major number allocated for emulation of SVR4 devices may vary between NetBSD platforms, the SVR4_MAKEDEV script uses the uname(1) command to determine the architecture the devices nodes are being created for; this can be overridden by setting the MACHINE environment variable accordingly. An alternative method is to mount a whole SVR4 partition in /emul/svr4 and then override with other mounts /emul/svr4/etc and /emul/svr4/dev. BUGS
Many system calls are still not emulated. The streams emulation is incomplete (socketpair does not work yet). Most SVR4 executables can not handle directory offset cookies > 32 bits. More recent ones, compiled for large file support (Solaris 2.6 and up) can. With older programs, you will see the message ``svr4_getdents: dir offset too large for emulated program'' when this happens. Cur- rently, this can only happen on NFS mounted filesystems, mounted from servers that return offsets with information in the upper 32 bits. These errors should rarely happen, but can be avoided by mounting this filesystem with offset translation enabled. See the -X option to mount_nfs(8). The -2 option to mount_nfs(8) will also have the desired effect, but is less preferable. BSD
April 19, 1999 BSD
All times are GMT -4. The time now is 12:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy