LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-21-2006, 06:48 PM   #1
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
Can't install java vm (to run DGuitar)


I tried this.

Downloaded http://jdl.sun.com/webapps/download/...BundleId=10335

extracted the rpm

runned alien

dpkg -i package

Ok installed.

Then i tried java -version on console. He didn't found command java

I entedered on folder /usr/java/jre1.5.0_06/bin

Made cp -f * /usr/bin/

Now i get this when i try to run DGuitar

fernando@c5:~/DGuitar-0.5.8$ ./DGuitar.sh
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
 
Old 02-21-2006, 06:55 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
run
apt-get install java-package
download the bin from java.com
make-jpkg <bin-file>

It will create a java deb for you The Debian Way(tm)!
 
Old 02-21-2006, 07:03 PM   #3
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
I have tried it, but does not seen to work.

Code:
fernando@c5:~$ sudo make-jpkg jre-1_5_0_06-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXZi7ArU
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh

No matching plugin was found.
Removing temporary directory: done
 
Old 02-21-2006, 07:11 PM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
try
DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_TYPE=i386-linux make-jpkg <binfile>

Last edited by dracae; 02-21-2006 at 07:19 PM.
 
Old 02-21-2006, 07:23 PM   #5
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
fernando@c5:~$ sudo DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_TYPE=i386-linux make-jpkgjre-1_5_0_06-linux-i586.bin
Password:
sudo: DEB_BUILD_ARCH=i386: command not found
fernando@c5:~$
 
Old 02-21-2006, 07:31 PM   #6
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
sudo su
DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_TYPE=i386-linux make-jpkg <binfile>
exit
 
Old 02-21-2006, 07:36 PM   #7
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
c5:/home/fernando# DEB_BUILD_ARCH=i386 DEB_BUILD_GNU_TYPE=i386-linux make-jpkg jre-1_5_0_06-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXXDNVS9
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh

No matching plugin was found.
Removing temporary directory: done
c5:/home/fernando#
 
Old 02-21-2006, 07:43 PM   #8
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
change line 6 from i386|i386-linux to i386|i486-linux-gnu in /usr/share/java-package/sun-j2re.sh
 
Old 02-21-2006, 08:40 PM   #9
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
My file does not have a line like that.

Code:
# Detect product
function sun_j2re_detect() {
    local found=
    case "$archive_name" in
	"j2re-1_3_1_"[0-9][0-9]"-linux-i586.bin")
	    j2se_version="1.3.1+${archive_name:11:2}"
	    j2se_expected_min_size=38 # 39089 kB
	    found=true
	    ;;
	"j2re-1_4_2-linux-i586.bin")
	    j2se_version=1.4.2
	    j2se_expected_min_size=56 # 58000 kB
	    found=true
	    ;;
	"j2re-1_4_2_"[0-9][0-9]"-linux-i586.bin")
	    j2se_version="1.4.2+${archive_name:11:2}"
	    j2se_expected_min_size=56 # 58093 kB
	    found=true
	    ;;
	"j2re-1_5_0-beta2-linux-i586.bin")
	    j2se_version=1.5.0+beta2
	    j2se_expected_min_size=81 # 83267 kB
	    found=true
	    ;;
    esac
    if [[ -n "$found" ]]; then
	cat << EOF

Detected product:
    Java(TM) Runtime Environment (J2RE)
    Standard Edition, Version $j2se_version
    Sun Microsystems(TM), Inc.
EOF
	if read_yn "Is this correct [Y/n]: "; then
	    j2se_found=true
	    j2se_release="${j2se_version:0:3}"
	    j2se_required_space=$(( $j2se_expected_min_size * 2 + 20 ))
	    j2se_vendor="sun"
	    j2se_title="Java(TM) 2 RE, Standard Edition, Sun Microsystems(TM)"
	    j2re_run
	fi
    fi
}

j2se_detect_sun_j2re=sun_j2re_detect
Should i download an older version?
 
Old 02-21-2006, 09:15 PM   #10
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
you should download a older version of java or a newer version of java-package. Are you running sarge? Mine with support for java 1.5+ is from the etch repositories

I make no guarantees but you may be able to add

"jre-1_5_0_"[0-9][0-9]"-linux-i586.bin") # SUPPORTED
j2se_version=1.5.0+update${archive_name:10:2}
j2se_expected_min_size=16 # 16542512 bytes
found=true
;;

the the case statement

Last edited by dracae; 02-21-2006 at 09:16 PM.
 
Old 02-22-2006, 12:36 AM   #11
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
Quote:
Originally Posted by stormrider_may
fernando@c5:~$ sudo make-jpkg jre-1_5_0_06-linux-i586.bin
You need to download the JDK from Sun, not the JRE.
 
Old 02-22-2006, 05:42 AM   #12
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by spooon
You need to download the JDK from Sun, not the JRE.
But on DGuitar site it tells me to download java vm, when i enter on java´s site (using dguitar link) it is on jre download page.
Look here http://dguitar.sourceforge.net/en/require.html
just downloading jdk dguitar will work?



Dracae
Yes, i´m using sarge.
 
Old 02-22-2006, 09:00 AM   #13
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
The JDK includes the JRE, so either one will work, *Provided* your version of java-package supports it. You can probably add the lines in my previous post to get the latest. You might just try an apt-get update; apt-get install java-package to see if there is a newer version.
 
Old 02-22-2006, 10:05 AM   #14
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Original Poster
Rep: Reputation: 30
Damn, not working...

Code:
Testing extracted archive... okay.

Create debian package:
    dh_testdir
    dh_testroot
    dh_installchangelogs
    dh_installdocs
    dh_strip
    dh_compress
    dh_fixperms
    dh_installdeb
    dh_shlibdeps
Use of uninitialized value in scalar assignment at /usr/bin/dh_shlibdeps line 13
8.
    dh_gencontrol
    dh_md5sums
    dh_builddeb
dpkg-deb: construíndo pacote `sun-j2re1.5' em `/tmp/make-jpkg.XXXXcVZU2x/sun-j2r
e1.5_1.5.0+update06_i386.deb'.
    copy sun-j2re1.5_1.5.0+update06_i386.deb into directory /home/fernando/

The Debian package has been created in the current directory. You can
install the package as root (e.g. dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb).
You should also install the corresponding package with Debian specific
parts (e.g. apt-get install sun-j2re1.5debian).


Removing temporary directory: done

c5:/home/fernando# dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
Selecionando pacote previamente não selecionado sun-j2re1.5.
(Lendo banco de dados ... 89309 arquivos e diretórios atualmente instalados.)
Descompactando sun-j2re1.5 (de sun-j2re1.5_1.5.0+update06_i386.deb) ...
dpkg: problemas de dependência impedem configuração de sun-j2re1.5:
 sun-j2re1.5 depende de sun-j2re1.5debian; porém:
  Pacote sun-j2re1.5debian não está instalado.
dpkg: erro processando sun-j2re1.5 (--install):
 problemas de dependência - deixando desconfigurado
Erros foram encontrados durante processamento de:
 sun-j2re1.5
c5:/home/fernando# apt-get install sun-j2re1.5debian
Lendo Lista de Pacotes... Pronto
Construindo Árvore de Dependências... Pronto
Os NOVOS pacotes a seguir serão instalados:
  sun-j2re1.5debian
0 pacotes atualizados, 1 pacotes novos instalados, 0 a serem removidos e 13 nãoatualizados.
1 pacotes não totalmente instalados ou removidos.
É preciso fazer o download de 4474B de arquivos.
Depois de desempacotamento, 61,4kB adicionais de espaço em disco serão usados.
Obtendo:1 http://www.landshut.org woody/all sun-j2re1.5debian 0.13-14.afulinux.de.1 [4474B]
Baixados 4474B em 1s (2337B/s)
Selecionando pacote previamente não selecionado sun-j2re1.5debian.
(Lendo banco de dados ... 90013 arquivos e diretórios atualmente instalados.)
Descompactando sun-j2re1.5debian (de .../sun-j2re1.5debian_0.13-14.afulinux.de.1_all.deb) ...
Instalando sun-j2re1.5 (1.5.0+update06) ...

Instalando sun-j2re1.5debian (0.13-14.afulinux.de.1) ...

c5:/home/fernando/DGuitar-0.5.8# ./DGuitar.sh
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
 
Old 02-22-2006, 10:08 AM   #15
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Yeah, according to the link you posted earlier, DGuitar requires jre 1.4x. There are some incompatabilities between 1.4 and 1.5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solfege, timidity & DGuitar, MIDI issue. Jorek Linux - Software 2 01-13-2006 05:07 PM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
How to install & run Java and Mysql on Mandrake 10.1. 2455 Linux - General 1 08-12-2005 10:04 AM
Trying to run photoshop in wine. Install, but wont run. bruno buys Linux - Software 14 07-15-2004 04:30 PM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 06:32 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration