Skip to content

Java Editor Error

Featured Replies

Can you tell me why i take this error ?

 

problemfb.png

  • Author

Now when i try write activeChar. and then press " CTRL + SPACE " I GET THIS :

 

activeChar cannot be resolved to a type . Anyone can help me ?

I dont think that there is a type activeChar

activeChar is used to be L2PcInstance or L2Character

but you should check any java guide about types and variables

FYI activeChar can be anything as well as nothing

301,000 results on Google.

 

I lol'd so hard.

 

I wish there was like, a minimum knowledge required requirement.

I lol'd so hard.

 

I wish there was like, a minimum knowledge required requirement.

 

That's nothing about knowledge, but common sense.

 

"cannot be resolved to a type", 41 400 000 results.

"cannot be resolved to a type java", 9 200 000 results.

"cannot be resolved to a type java error", 65 600 000 results.

"cannot be resolved to a type java eclipse", 7 690 000 results.

 

"why am i dumb", 220 000 000 results.

  • Author

That's nothing about knowledge, but common sense.

 

"cannot be resolved to a type", 41 400 000 results.

"cannot be resolved to a type java", 9 200 000 results.

"cannot be resolved to a type java error", 65 600 000 results.

"cannot be resolved to a type java eclipse", 7 690 000 results.

 

"why am i dumb", 220 000 000 results.

 

 

There isn't any tutorial about l2j . /:)

 

I want add some libraries but i can't find them .

There isn't any tutorial about l2j . /:)

 

I want add some libraries but i can't find them .

 

Your error isn't l2j specific.

http://java.syntaxerrors.info/index.php?title=Foo_cannot_be_resolved_to_a_type

I know , but nothing works for me . Anyone ?

 

Any code ? Don't expect to get correct answers if we can only guess your problem.

  • Author

There is only a problem and already i told you .

 

2 months ago when I tryied to  wrote in eclipse activeChar , and when i pressed ctrl + space I get a list with what to complete , something like  "activeChar.setHero (1)" . Now , when i write activeChar and i press ctrl + space i take error with red in left part "activeChar cannot be resolved to a type". Why? I need some help . This is the problem , Tryskell .

 

Sorry for my english , but u will understand .

i think your source , is not on build patch :| try to import again lib's maybe it works

First, I don't remember 2 months errors of all people. Sorry to don't be a bot. Second, you didn't answer to my previous question (post a CODE).

 

So I will answer approximatively, and won't care about that topic anymore.

 


 

activeChar has to be a L2PcInstance, that state is often inheritated from method.

 

public void blabla(L2PcInstance activeChar)
{
    activeChar.anyAction();
}

in that case that will work.

 

public void blabla(L2PcInstance player)
{
    activeChar.anyAction();
}

change one or other name (player => activeChar OR activeChar => player).

 


 

Try ctrl+shift+o to correct imports.

 


 

L2PcInstance dog is a L2PcInstance. Don't think "activeChar" is always a player. It totally depends of the environnement (and that's why I needed a freakin code). You can find player, activeChar, plyr, etc etc.

 

Anyway gl with your problem and don't PM me anew for another answer.

Create an account or sign in to comment

Account

Navigation

Search

Search

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.