[Assist] openJDK issue

Franco Masotti franco.masotti at student.unife.it
Fri May 6 16:39:04 BST 2016


I think you have my same problem. Try to add an alias with the 
following:
```
$ printf "alias java='java -cp .'\n" >> ~/.bashrc
```

Without that if I do:
```
$ java TestClass
```
I get:
```
Error: Could not find or load main class TestClass
```

On Fri, May 06, 2016 at 10:33:12AM -0400, Scott wrote:
> Hello Parabola team.
> I have been trying to troubleshoot a java related issue after compiling.
> I have jdk8/jre8 both installed.
> ANY compiled code does not work when run.
> For example, a file called 'Test.java' will be compiled by: 'javac
> Test.java', then the class will appear: 'Test.class'
> I will then run the class: 'java Test' and get feedback via command line:
> 'Error: could not find or load class Test'
> 
> This has been the case for many simple java programs.
> I have switched between jdk8 and jdk7, with parabola-java, to see if any
> difference would occur, but none.
> 
> I would really appreciate your help.
> Thank you.
> -Scott
> _______________________________________________
> Assist mailing list
> Assist at lists.parabola.nu
> https://lists.parabola.nu/mailman/listinfo/assist

-- 
Franco Masotti
My public key fingerprint: F13C 27D7 EDF0 4F7C 0A9F  1244 9A11 29F0 4019 6B95
Get my public key like this: $ gpg --keyserver pgp.mit.edu --recv-keys 40196B95
Use Parabola GNU/Linux-libre: <https://www.parabola.nu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.parabola.nu/pipermail/assist/attachments/20160506/c2d9b191/attachment.asc>


More information about the Assist mailing list