e-mail   
 Menu
  Home
  Download
  Top 10 Downloads
  Last 15 New Files
  Web Links
  Tips
  Last 15 New Tips
  NLM Programming
  Admins Club





SUPLA System
Internet of Things




Installation and Administration






Polish Forum SUSE


 
Who's Online

 There are currently,
25 guest(s)
that is (are) online.
 


Technical Information

Back to List of Categories

Technical Information about
  A Little YaST Magic
  A Slideshow for Your KDE Wallpaper
  Add Novell Support to Your Firefox Search Engine
  Adding To The Panels In Gnome.
  Akregator - RSS News Reader
  An Introduction to WBEM and OpenWBEM in SUSE LINUX
  Authenticating SUSE LINUX to eDirectory via LDAP
  Basic Mounting Differences between Windows and Linux
  Beginner's Guide to Using Novell SUSE LINUX's Build Utility
  Browsing Files
  Card Readers on SUSE LINUX 9.2 Professional?
  Changing the Default Browser in Gnome
  Developing Perl CGI scripts on SUSE LINUX
  Do I Have Permission?
  Double SYNC -- Using RSYNC Simultaneously With and Without Branch Office for Data Backup
  Dumb Question: Mounting Linux CDs
  Easy Command-Line Introduction
  Easy Way to Debug SSL Connections
  Enabling an Interactive Startup in Novell/SUSE LINUX
  Exploring MySQL 4.1 and PHP 5 on SUSE LINUX
  Extend Your Panels Using Gnome Drawers.
  Firefox Speed Tip
  Fix Java Errors With ConsoleOne On Linux
  Fix Your Mouse Wheel...
  Gimp -- Closing In on Photoshop...
  Gimp Tips Part 1: Resizing Images
  Gimp Tips Part 2: Rounding Corners
  Gimp Tips Part 3: Fading Photography Edges
  Gimp Tips Part 4: Selective Colorization
  Gimp Tips Part 5: Plugins a Plenty - Adding Light
  Gimp Tips Part 6: Using The Clone Tool
  Google Auto-fill Replica for Linux
  How a Corrupted USB Drive Was Saved by GNU/Linux
  How to Implement Login Scripts into a Pure Linux Environment
  How to install and connect an External Modem on a Linux PC
  How to Install the Novell Client for Linux on SUSE Linux 10.0
  How to launch applications at login in Gnome
  How to Remote Control Linux
  How to setup a Linux application to automatically startup when you login.
  How to share Files and Printers Between Linux and MS Windows with Samba
  How to uninstall the Novell Client for Linux
  How to upgrade the Novell Client for Linux
  How to use SMB without turning off the firewall
  How's the Weather?
  HTML Development Tools in Linux
  Informative Bash Prompt
  Install and Use QEMU on SUSE 9.2
  Install Linux Frequently, Without the Hassle
  Installing Apache, PHP, and MySQL on SUSE LINUX Professional
  Installing RPM Files
  Integrating Novell Linux Desktop into a Novell NetWare network
  Introduction to Oracle 10g R1 (10.1.0.3) on SUSE LINUX Professional 9.3
  iPrint Printers on Novell Linux Desktop
  Linux Scheduling Priorities Explained
  Make a Misbehaving Program Quit
  Manually Mounting a USB Flash Drive in Linux
  Migrating To Linux, Advantages Over Windows 9.x And XP
  Minimize Your Maximizing with Multiple Desktops
  Mounting NetWare Volumes On NLD Illustrated
  Move Your /home to Another Computer
  Mozilla Mail Review
  Need a Backup?
  Novell Client Settings with Windows Terminal Server
  Novell Linux Desktop Equivalents of Windows Software - New and Improved
  Novell Linux Desktop System Upgrade How-To
  Partitioning Hard Drive for Linux Install
  Perform Remote SuSE Installations With Virtual Network Computing
  Quick Intro to Klipper
  Quick Shortcuts in The Gimp
  Reset Your Lost Root Password
  Resizing Your Gnome / KDE Panels
  Runlevels in SUSE LINUX
  Running Existing Win32 Applications on SUSE LINUX
  Service Command in /etc/init.d/
  Setting Shortcut Keys
  Setting up a Linux NFS Install Source for Your LAN
  Should I choose Novell Linux Desktop or SUSE LINUX Professional as my desktop?
  Starting Services From the Command Line On SuSE LINUX
  Sticky Notes for Gnome
  SUSE LINUX 9.3 Professional Review
  Sync Up The Taskbar and the Desktop in Gnome
  System Upgrade How-To
  Taking Screenshots in Linux
  The Basics of Messaging in the Cross-Platform GroupWise Client
  The Novell Client for Linux (beta).
  Transparent Panels in Gnome
  Trick Out Your KDE Desktop
  Understanding the YAST Software Module Options
  Updating Your Software with Red Carpet
  Using dsbk on Linux and Unix
  Using iFolder to Synchronize Firefox Bookmarks
  Using Multiple Swap Partitions In 2.4
  Using openSSH to Securely Access Remote Systems
  What FTP client should I use on Linux?
  What Is Logical Volume Management?
  What is so great about Firefox?
  Which Graphic Formats For What?
  Windows Shortcuts for Firefox Tabs on Linux
  Windows to Linux: A Beginner's Guide
  Windows Users Can Feel at Home Exploring Files in Linux
  WLAN interface as the Default
  Work With User Selection Icons In KDM
  YAST Online Update De-Mystified

Technical Information
 Fix Java Errors With ConsoleOne On Linux

Printer-friendly version

Posted: 21 Apr 2005

Running ConsoleOne on Linux can be a small adventure. With multiple runtime environments to choose from and different implementations in the distributions, getting ConsoleOne up and happy requires a little understanding.

In order to run, ConsoleOne needs to be able to find a proper Java Runtime Environment. When trying to get ConsoleOne up and running, verify first the JRE, then make sure ConsoleOne can find it.

Verify A Working JRE Is Installed

The question of ensuring a proper JRE is installed is fairly complex. The main options for the JRE are IBM Java, Sun Java, and Novell's JRE that is included in the ConsoleOne package.

The easiest way to give recommendations is by distribution and product, so here goes:

  • SUSE LINUX 8, including SLES8 You can use the IBM Java package that comes with the system. Due to variances in updates; however, the best practice is to allow the ConsoleOne install to install the Novell JRE, which works well with the 2.4 kernel.
  • SLES9 Never use the IBM Java package 1.4.2 included in SLES9. Also do not allow ConsoleOne to install the Novell JRE package. The best bet is to install the Sun JRE, which is included in the SLES9 distribution.
  • NLD, SUSE LINUX Professional 9.2, 9.3, OES These distributions install and use the Sun JRE by default, so they'll work without an additional installation.
  • Novell Linux Small Business 9 The ConsoleOne package included in NLSB9 has an updated Novell JRE, so allow ConsoleOne to install the Novell JRE during the install. Note that the Novell JRE on NLSB9 can be installed on any 2.6 kernel and work. The package novell-c1-sdd is installed by default and sets up LSB to deliver ConsoleOne to client systems from the directory /opt/novell/ConsoleOne/software.
  • RedHat, other distributions Users have confirmed ConsoleOne running on the Sun JRE on RedHat and other distributions. The Sun JRE can be downloaded at http://www.java.com/en/download/linux_manual.jsp

The easiest way to make sure the JRE is installed and working right is to use YaST to search for java or jre.

Make Sure ConsoleOne Can Find The Correct JRE

The script that starts ConsoleOne is located at /usr/ConsoleOne/bin/ConsoleOne. Looking in the script reveals code that tries to find the JRE to use. The code is also set up to give precedence to certain locations. The priority is as follows (from highest to lowest):

  • C1_JRE_HOME an environmental variable
  • /usr/ConsoleOne/jre/jre to account for the Novell JRE being installed
  • /usr/ConsoleOne/jre the default location for the Novell JRE that is installed by ConsoleOne
  • JRE_HOME the standard JRE environmental variable

Note: You can also enable code in the ConsoleOne script to use Compaq Java and IBM Java.

You should verify that ConsoleOne can find the correct JRE on your machine. The first step to take is to see what the environmental variable JRE_HOME is set to. Do the following:

#echo $JRE_HOME /usr/lib/java/jre

On many systems using the IBM Java package, JRE_HOME is set to /usr/lib/java. The example listed above is taken on a Linux Small Business 9 system.

The next step is to find if the path in JRE_HOME points to a linked file, and if so to find out what java package it is linked to. For example:

#ll /usr/lib/java lrwxrwxrwx 1 root root 12 2005-04-13 03:59 /usr/lib/java -> IBMJava2-1.4

The output indicates that the default JRE on the system is IBM Java. In this case, IBM Java 2-1.4, ConsoleOne doesn't work with the default JRE. If the default JRE is the desired JRE for your system, nothing further is required.

If ConsoleOne doesn't work with the default JRE, you'll need to point it to an alternate JRE. The two most common possibilities are as follows:

  • Novell JRE
  • Sun JRE

Novell JRE

If the system can correctly use the Novell JRE (2.4 kernels and Linux Small Business 9), then installing the Novell JRE during the ConsoleOne install is all that is required. The Novell JRE will be installed in /usr/ConsoleOne/jre and take precedence over the default JRE listed in JRE_HOME. The only problem that could arise is having C1_JRE_HOME defined in the environment, but this is unlikely as the user must explicity create and define C1_JRE_HOME.

Sun JRE

On many of the newer SUSE LINUX distributions, Sun JRE is the default JRE pointed to by JRE_HOME. If you're going to use Sun JRE on systems that don't have it as the default JRE, you need to set up ConsoleOne to find the Sun JRE folder on the system.

The first step is to find where the Sun Java package is installed on your system. Specifically, look for the jre folder. On SLES9, the Sun Java package installed by YaST will place a link to the Sun Java files at /usr/lib/SunJava2. With the Java package from http://www.java.com/ on a RedHat box, the JRE is found at /usr/java/jre1.5.0_02. The jre folder is always in the package name folder (e.g. /usr/lib/SunJava2/jre).

With the path to jre folder, you're now need to provide the path to ConsoleOne using the C1_JRE_HOME environment variable. Do the following:

  1. Open a terminal and sux to root
  2. Change to the ConsoleOne bin directory by entering cd /usr/ConsoleOne/bin.
  3. Allow root to write to the ConsoleOne script by entering chmod 755 ConsoleOne.
  4. Open ConsoleOne for editing by entering vi ConsoleOne.
  5. Under the line export the LD_LIBRARY_PATH environment variable add the line export C1_JRE_HOME=path_to_the_Sun_JRE. For example, export C1_JRE_HOME=/usr/lib/SunJava2/jre.
  6. Save and close the file.
  7. Test the change by launching ConsoleOne by entering ./ConsoleOne.






Since 2003

Portal posiada akceptację firmy Novell Polska
Wszystkie materiały dotyczące produktów firmy Novell umieszczono za zgodą Novell Polska
Portal has been accepted by the Novell Polska
All materials concerning products of Novell firm are placed with Novell Polska consent.
NetWare is a registered trademark of Novell Inc. in the United States and other countries.
Windows is a trademark or a registered trademark of Microsoft Corporation in the United States and other countries.
Sybase is a registered trademark of Sybase Inc. in the United States of America.
Other company and product names are trademarks or registered trademarks of their respective owners.