jump to navigation

Jini Installation On RH Linux August 29, 2008

Posted by sandakith in linux, Open Source, Tooling.
add a comment

I tried to download and run the Installation of Jini on RH Linux and it gave me this error [1]

Which was never accoured to me, when I further lookin to the problem, I found the solution..

We need to have a environment variable LAX_VM set to $JAVA_HOME/jre/bin/java”

BTW this was all with Jini 2.1 with Sun JDK 1.4.x and its Seems like the installer script uses default embedded JVM using LAX_VM argument.

[1]

Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…

Launching installer…

Warning: -Xmx50331648 not understood. Ignoring.
Warning: -Xms16777216 not understood. Ignoring.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError: while resolving class: ZeroGe
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at ZeroGd.<clinit>() (Unknown Source)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ResolvePoolEntry(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at com.zerog.ia.installer.LifeCycleManager.a(boolean) (Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.b(java.lang.String[]) (Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.a(java.lang.String[]) (Unknown Source)
at com.zerog.ia.installer.Main.main(java.lang.String[]) (Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.apple.mrj.MRJOSType not found in [file:/tmp/install.dir.10098/InstallerData/, file:/tmp/install.dir.10098/InstallerData/installer.zip, file:/usr/share/java/libgcj-3.4.6.jar, file:./, core:/]
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
…9 more
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Advertisements

How to create a signing key from gpg December 19, 2007

Posted by sandakith in linux, Open Source, Tooling.
add a comment

First step

gpg – -gen-key

accept defaults except the keysize(as your level of expectations) and of cause your name and email address

when generating the key if the generator complains that there is not enough CPU work currently being executed to generate enough entropy, generate some events in your OS and do some work (Example : execute a heavy program for example like build a project from source).

Next Step : After the key generation upload the key to a key server, with gpg – -send-keys XXXXXXX

where XXXXXXXX will be the secoend part of your generated key that will be displayed above. Ex XXXXX/XXXXXXXX

Finally the most important next step is to backup the generated key (located in .gnuppg) in a safe and trusted way (You can not loose your private key), this is your decision 🙂

Remove the old kernel from Ubuntu November 25, 2007

Posted by sandakith in linux, Open Source.
13 comments

Ubuntu always keeps the old kernel when it install a new one, just in case this new one doesn’t work well for you.

You can uninstall the old one if you don’t use it anymore :

Code:

X@X-laptop:~$ sudo apt-get remove - -purge 2.6.24-17-*

Doing this will uninstall the packages related to the 2.6.15-23 kernel, like “linux-image-2.6.15-23-386”, “linux-restricted-modules-2.6.15-23-386”, etc. But if you have software like VMWare that has some heavy coupling with that particular version of the kernel you should not do this.

Ubuntu.. Startup being slow with fsck on vfat June 5, 2007

Posted by sandakith in linux, Open Source.
4 comments

My Ubuntu bootup is really really slow, some reasons are clearly visible.. fsck might be one of the causes.

dosfsck which is called via fsck everytime you boot takes quite a bit of time and slows down the boot process dramatically.

Searching the web I found that you can disable the fsck check by changing the entry “1” (checks file system everytime) to “0”

So, your fstab entry for vfat partitions would look something like this,

UUID=301C-1A1D /media/hda1 vfat defaults,utf8,umask=007,gid=46 0 0

Ubuntu.. More Control June 5, 2007

Posted by sandakith in linux, Open Source.
add a comment

Here’s a good one for people who’ve been using Ubuntu for a while and now want to take more control over their system in terms of executing their own scripts at the startup ( Ex : JDK debug speeding patch script)

To make a script startup on boot: First copy the script to /etc/init.d/
`sudo cp MYSCRIPT /etc/init.d/`

Then enable it sudo update-rc.d MYSCRIPT defaults`
…and that’s it.

Simple and very useful Utility also to enable/disable startup scripts:
`sudo apt-get install sysv-rc-conf`
`sudo sysv-rc-conf`
And then you can select/unselect services for each runlevel.

Have Fun.. with more control..

Rebooting Solaris Box June 5, 2007

Posted by sandakith in linux.
add a comment

On solaris box, don’t just type reboot.

That will make the machine hang in init 1 mostly (single user mode)

instead, type the following:

$ shutdown -y -g0 -i6

Birds eye view folder used space, June 2, 2007

Posted by sandakith in linux.
add a comment

Here’s a handy command sequence which you can run anywhere, anytime, so see which directories contain the most amount of data. It’s a really useful way to focus your attention on the biggest users of disk space.

$ du -k . | sort -rn | less

* ‘du -kh .’ means “Show disk usage (in human redable format)  for all directories in current directory”
* ‘sort -rn’ means “Sort in reverse numeric order (largest first)”
* ‘less’ is a handy favourite pager (When overflows output page).

This will give you a list of directory sizes followed by the directory name. The top ones are where you should focus your attention.

New user login with new gnome session June 1, 2007

Posted by sandakith in linux.
add a comment

su –
adduser robocop
passwd robocop

login :robocop
passwd : robocop

export DISPLAY=:1
X :1 &
gnome-session &

the new session will be available on next virtual login

for example on ctl+alt+F9 (X:1)

The whole Idea of Blogging May 31, 2007

Posted by sandakith in linux.
add a comment

I just read an article on blogging.
The only line that caught my eye was,

tail -f /dev/mind > blog

That explains everything.. , the whole article was in there in that line.