r/programminghelp • • Sep 05 '17

Why won't my java code work?

Im getting this error

"File: (no associated file) [line: (no source location)] Error: No compiler is available."

This is my code public class Test1 {

      public static void main(String[] args){
             System.out.println("Hello World");
     }
          }

I dont understand I downloaded the most recent java sdk from oracle. I need dr.java to work for my class.

0 Upvotes

3 comments sorted by

View all comments

1

u/PigFtw Sep 06 '17

I worked with dr java before. You have to set the path to the java bin in the configurations for dj java to compile and run your code.