Error compiling source code at Java
I have this code:
package org.test;
import org.test.utils.Logger;
public class Test
{
public static void main(String[] args)
{
}
}
At file:
/var/www/test/src/org/test/Test.java
And this other file:
package org.test.utils;
public class Loger
{
private static Logger currentLogger = null;
@SuppressWarnings("unused")
private static Logger getInstance()
{
if (currentLogger == null)
{
Logger.currentLogger = new Logger();
}
return Logger.currentLogger;
}
public static void write(String message) {
// TODO You must implement this method
}
}
At file:
/var/www/test/src/org/test/utils/Logger.java
But when I compile it from sublime, it says:
Compiling Java sourcecode...
Test.java:3: error: package org.test.utils does not exist
import org.test.utils.Logger;
^
1 error
Compiling error, no .class file created
[Finished in 0.8s]
I'm using this manual:
http://binarydaydreams.wordpress.com/2012/08/08/compiling-java-with-sublimetext2-on-ubuntu/
I'm newbbie at Java... What am I doing wrong?
No comments:
Post a Comment