LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2003, 03:35 PM   #1
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Rep: Reputation: 15
Question Permissions & a Java prob


hi there,

what permissions do i have to change in order for me to acess\r\w to the floppy drive and cdrom as normal user?

lrwxrwxrwx 1 root root 8 Nov 3 18:41 /dev/cdrom -> /dev/hdc
brw-rw---- 1 root floppy 2, 0 May 14 1996 /dev/fd0

..and if i wanted to be able to mount cds/floppys as a normal user?

---------------

ok other problem, im using the Java SDK which was automatically set up with 9.1, when i go to run a program i get this exception:

ed@sub5:~$ java /home/ed/java/test1
Exception in thread "main" java.lang.NoClassDefFoundError: /home/ed/java/test1

it complies ok but it just doesnt run! i havnt changed any configs, its the way slack has it setup.


thanks for your help,
Ed.

Last edited by edM; 11-04-2003 at 07:04 PM.
 
Old 11-04-2003, 07:27 PM   #2
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
prob 1)
add 'user' to the 4th column in /etc/fstab. This will allow any user to mount a floppy and will setup the proper perms.

prob 2) i don't know what test1 source contains. but it probably does not contain the basics for a java file. your class name must be the same as the file name! ex:

file foo.java:
Code:
public class foo {
        public static void main(String[] args) {
                System.out.println("foo");
        }
}
compile it with "javac foo.java" then run it with "java foo".
 
Old 11-05-2003, 02:38 PM   #3
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
test1 was just a simple prog with 1 output string , it compiled.

could it be that the class path is not correct?
 
Old 11-05-2003, 03:07 PM   #4
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
you either have to run in the same directory or setup:
export CLASS_PATH=/home/ed/java

or place "export CLASS_PATH=~/java" in ~/.profile.
 
Old 11-05-2003, 03:49 PM   #5
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
alright thanks ill give it a go.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
opera 8.02 and Java prob arjunjeyaprakash Linux - Newbie 22 10-30-2005 08:42 PM
KsCD permissions prob on FC3 farpoint Fedora 1 09-17-2005 04:12 PM
java / game install prob GoreSpilr Linux - Newbie 2 09-25-2004 07:59 PM
java prob ashesh Linux - General 11 02-08-2003 10:43 PM
Can't burn audio in CDBakeoven, permissions prob? bax Linux - Software 22 10-03-2002 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration