Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Java compiler error

Featured Replies

Well, let me give an example of what my problem is. Refer to the following two classes.

public class Character
{
 private String name;

 public Character(String name)
 {
   this.name = name;
 }
}

public class TestCharacter
{
 Character mine = new Character("Cloud");
}

I know that my program dosen't "do" anything, I just wanted to give an example of what error my compiler is goving me. This is the error that my compiler gives me.

TestCharacter.java:3: cannot resolve symbol
symbol  : constructor Character (java.lang.String)
location: class java.lang.Character
 Character mine - new Character("Cloud");
                  ^
1 error

The classes compile perfectly on two other computers, one running Windows98SE and another running WindowsXP Home Edition. I believe that the problem came up after I installed Office XP on my computer, which is running Windows98SE. Yes, my compiler used to work just fine but I did something and it is giving me this error.

When I type in "echo %CLASSPATH%" in command prompt it give me the result:

"C:\WINDOWS\SYSTEM\QTJava.zip""

Is this correct?

EDIT: Formatted my C: drive, which only had windows files on it, and reinstalled windows98se. The problem is fixed now. The only think that I can think of that caused the problem was installing office XP. Well, the compiler works perfectly now!


Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.