Java Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello:
I have come accross an interesting issue with Java. Let's say I
fashion a simple Hello World app, and entitle it hello.java The code
would be:
class hello
{
public void main(String[] args)
{
System.out.println("Hello World!");
}
}
Then, I compile the code as a regular user, with javac hello.java
Here's the odd part: I type java hello, and I get unable to find main
class hello
But, if I run sudo java bhello, it works fine. What is the solution to
not having to run Java software as sudo?


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux