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
Java, database and a newbie
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.
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.
- 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
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
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
- 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
Can you provide a link to the tutorial you used and also please provide the contence of /etc/apt/sources.list.Skyalex wrote:Yes. I edited my sources.list as I have said tutorials
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
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
Re: Java, database and a newbie
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
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
- 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
aptitude update
aptitude install sun-java6-jre
That should just work with the sources.list that you posted.
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
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Re: Java, database and a newbie
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)
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)
- 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
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?
* 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
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list
Re: Java, database and a newbie
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)
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)
Re: Java, database and a newbie
Not sure what command you are typing just prior to seeing this error, but you should be using the -p flag, as in:and avec phpmyadmin = #1045 - Access denied for user 'root'@'localhost' (using password: NO)
Code: Select all
mysql -u root -p
Let me know how that works for you sky.
~Chris