Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Java, database and a newbie

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Skyalex
Posts: 5
Joined: 2009-12-19 11:28

Java, database and a newbie

#1 Post by Skyalex »

Hello,

My OS : Debien 5.0 R1 + ISPconfig 3+ usrquota
I will install this program :

-Java (jre) 6
-A database (sql) and phpmyadmin
-my files (it's ok)


But when i want to download Java Jre 6 I have this message :

-package sun-java6-jre has not installation candidate.

And when I install java5 and I launch my java file (developed under java
6) with this command : screen java -jar ancestra_core.jar

Error -> the screen exit automatically

Help me please !

Ps : I'm french.

User avatar
Absent Minded
Posts: 3464
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.
Been thanked: 3 times

Re: Java, database and a newbie

#2 Post by Absent Minded »

have you ran apt-get update from a terminal as root/
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012

Skyalex
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

#3 Post by Skyalex »

Yes. I edited my sources.list as I have said tutorials

User avatar
Absent Minded
Posts: 3464
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.
Been thanked: 3 times

Re: Java, database and a newbie

#4 Post by Absent Minded »

Skyalex wrote:Yes. I edited my sources.list as I have said tutorials
Can you provide a link to the tutorial you used and also please provide the contence of /etc/apt/sources.list.
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012

Skyalex
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

#5 Post by Skyalex »

http://www.commentcamarche.net/forum/af ... on-de-java

content :


deb http://ftp.fr.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Java, database and a newbie

#6 Post by craigevil »

aptitude update
aptitude install sun-java6-jre

That should just work with the sources.list that you posted.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

Skyalex
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

#7 Post by Skyalex »

Java5 is installed.
ns2041:/etc/apt# aptitude install sun-java6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 96 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

ns2041:/etc/apt# java version
Exception in thread "main" java.lang.NoClassDefFoundError: version
Caused by: java.lang.ClassNotFoundException: version
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Java, database and a newbie

#8 Post by craigevil »

Package sun-java6-jre
* lenny (stable) (libs): Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files) [non-free]
6-12-1: all
sun-java6 is definitely in lenny. Was your system Etch at one time?
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

Skyalex
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

#9 Post by Skyalex »

Ok, it's ok for java !

But for the database.

Whit navicat, i've this message = server at 'reading initial communication packet', system error: 0

and avec phpmyadmin = #1045 - Access denied for user 'root'@'localhost' (using password: NO)

Nom d'hôte (hostname) invalide pour le serveur 1. Veuillez vérifier votre configuration.
(Hostname invalid for server 1. Verify your config)

User avatar
cnoyes
Posts: 114
Joined: 2009-12-06 18:13
Location: North Carolina
Contact:

Re: Java, database and a newbie

#10 Post by cnoyes »

and avec phpmyadmin = #1045 - Access denied for user 'root'@'localhost' (using password: NO)
Not sure what command you are typing just prior to seeing this error, but you should be using the -p flag, as in:

Code: Select all

mysql -u root -p
The -p will prompt you for the password. This is the most common cause of seeing "using password: NO" error in mysql.
Let me know how that works for you sky.

~Chris
=================
chris@suxbox.org
Debian Sid
=================

Post Reply