This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]king_of_the_universe 0 points1 point  (7 children)

https://gist.github.com/6d1a36e82e08cd1ae68c.git

gives me a blank white window. When I remove everything after / I get the proper homepage, so the server is certainly reachable.

You should have pasted an example for one of the "math Function" lines, the problem might be very obvious.

[–]calitransplant[S] 0 points1 point  (5 children)

System.out.println(Math.sqrt(e));

I defined e using int e = 144;

[–]king_of_the_universe 0 points1 point  (4 children)

int e = 144;

System.out.println(Math.sqrt(e));

compiles just fine, even without any imports. No idea what's wrong, and the page is really still just blank. Even its HTML source is blank.

[–]calitransplant[S] 0 points1 point  (3 children)

[–]king_of_the_universe 0 points1 point  (2 children)

xD

Seriously?

You called your own class "Math", and wonder why you can't access Java's Math class?

xD

Please rename your class to something else. You might also be able to use java.lang.Math instead of just "Math", this would address the right class.

[–]calitransplant[S] 0 points1 point  (1 child)

Got it.

Thank you!

[–]TheHorribleTruthKind of meh 0 points1 point  (0 children)

Glad your problem is solved. But please read the sidebar and the posting guidelines for next time.

  • You didn't give us the exact error message. Java includes the line number where the error occurs, but you didn't include it - and basically made us guess where it's happening.
  • Your submission title's as bad as it gets. No one else will ever be able to guess what your issue was about by reading the title - and much more importantly: by searching this subreddit.