Hi,
I'm a beginner in working with JAVA. Started an class to get into it.
I have a question about the use of getDocumentBase ().
I worte an Applet with the getDocumentBase () function and it works fine. Now I tried to bring this function in an application. Here I receive the following error:
C:\SGD-Studium\JAV04\L ektion01\net.ja va:12: non-static method testUrl() cannot be referenced from a static context.
Could you give me some ideas how to avoid this error when compile?
Thanks Thomas
I'm a beginner in working with JAVA. Started an class to get into it.
I have a question about the use of getDocumentBase ().
I worte an Applet with the getDocumentBase () function and it works fine. Now I tried to bring this function in an application. Here I receive the following error:
C:\SGD-Studium\JAV04\L ektion01\net.ja va:12: non-static method testUrl() cannot be referenced from a static context.
Could you give me some ideas how to avoid this error when compile?
Thanks Thomas