Java, database and a newbie

New to Debian (Or Linux in general)? Ask your questions here!

Java, database and a newbie

Postby Skyalex » 2009-12-19 11:37

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.
Skyalex
 
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

Postby Absent Minded » 2009-12-19 11:47

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
User avatar
Absent Minded
 
Posts: 3757
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.

Re: Java, database and a newbie

Postby Skyalex » 2009-12-19 11:49

Yes. I edited my sources.list as I have said tutorials
Skyalex
 
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

Postby Absent Minded » 2009-12-19 12:06

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
User avatar
Absent Minded
 
Posts: 3757
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.

Re: Java, database and a newbie

Postby Skyalex » 2009-12-19 12:19

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
Skyalex
 
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

Postby craigevil » 2009-12-19 12:44

aptitude update
aptitude install sun-java6-jre

That should just work with the sources.list that you posted.
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Java, database and a newbie

Postby Skyalex » 2009-12-19 13:03

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)
Skyalex
 
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

Postby craigevil » 2009-12-19 14:41

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?
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: Java, database and a newbie

Postby Skyalex » 2009-12-19 16:00

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)
Skyalex
 
Posts: 5
Joined: 2009-12-19 11:28

Re: Java, database and a newbie

Postby cnoyes » 2009-12-26 00:55

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
=================
User avatar
cnoyes
 
Posts: 114
Joined: 2009-12-06 18:13
Location: North Carolina


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable