Devon Miller | 1 Oct 02:57
Picon

Re: Fix Import fails on both 5.0 and 6 Dev

If you create a new project from scratch, does the new project exhibit 
the behavior?

Luca Buraggi wrote:
> Hi there,
>
> After months of regular service the Fix Import function on my Netbeans 5.0
> suddendly stopped working properly.
> The Fix Import fails finding some classes, showing them as uresolved
> symbols,  even if these are definitely in the classpath (if I add maually
> the import the Fix Import still goes on complaning but the source compiles)
>
> I read the forums on the topic without any result (deleting {user}/var/cache
> didn't help) and a recently I installed
> the 6 Dev version, importing all my 5.0 environment when asked by the
> installation procedure.
>
> Apparently I imported the bug in the 6 Dev becouse nothing changed !
> The behaviour if very strange: once a symbol if flagged as "always
> unresolved" by Fix Import, it remains in this state even if I start a new
> fresh project.
>
> At the moment I have all the log4j classess (Log, LogFactory, ...) and many
> javax.persistence annotation classes that
> are not anymore found.
> I have a very tiny project (1 class, 1 statement) that shows this problem
> ... 
>
> Could anyone help me ? I can send the project or whatever needed to
> investigate the problem.
(Continue reading)

michael.mouer | 1 Oct 17:06
Favicon

Re: Fix Import fails on both 5.0 and 6 Dev

I encountered this problem several times - when you fix imports it will 
add another import but still flag the statement as an error.
To work around I delete the line in question, type it again and it 
recognizes the import.

Devon Miller <devon.miller2 <at> verizon.net>
09/30/2006 08:57 PM
Please respond to nbusers

 
        To:     nbusers <at> netbeans.org
        cc: 
        Subject:        Re: [nbusers] Fix Import fails on both 5.0 and 6 Dev

If you create a new project from scratch, does the new project exhibit 
the behavior?

Luca Buraggi wrote:
> Hi there,
>
> After months of regular service the Fix Import function on my Netbeans 
5.0
> suddendly stopped working properly.
> The Fix Import fails finding some classes, showing them as uresolved
> symbols,  even if these are definitely in the classpath (if I add 
maually
> the import the Fix Import still goes on complaning but the source 
compiles)
>
> I read the forums on the topic without any result (deleting 
(Continue reading)

Luca Buraggi | 1 Oct 18:01
Picon
Favicon

Re: Fix Import fails on both 5.0 and 6 Dev

Yes, I created a new project with 1 class, just declaring :

   protected final Log log = LogFactory.getLog(getClass());

and Fix Import complains "No imports found for type: Log, LogFactory

If I insert manually the import, the compiler compiles the program 
without errors.

Luca Buraggi, senior IT consultant
MATE - c.so Colombo 10, 20144 Milano

Office: lburaggi <at> mate.it
Home: luca.buraggi <at> tiscali.it

Devon Miller wrote:
> If you create a new project from scratch, does the new project exhibit 
> the behavior?
>
>
> Luca Buraggi wrote:
>> Hi there,
>>
>> After months of regular service the Fix Import function on my 
>> Netbeans 5.0
>> suddendly stopped working properly.
>> The Fix Import fails finding some classes, showing them as uresolved
>> symbols,  even if these are definitely in the classpath (if I add 
>> maually
>> the import the Fix Import still goes on complaning but the source 
(Continue reading)

Bayless Kirtley | 1 Oct 19:17
Picon

Re: Fix Import fails on both 5.0 and 6 Dev

This is the same problem I had. Fix Imports did not cause funny stuff
like flagging lines as bad. It simply could not find anything but did not 
indicate any kind of error. Someone at Sun tried to help by suggesting 
to remove some directories but it didn't help. I stopped short of trying 
to reinstall Netbeans. It sounds like that must not work either. I am 
sorry you are having the problem but I have to be encouraged that 
I am not the only one. Maybe some of the gurus will take it more 
seriously now that it seems to not be a one-time problem and find the 
root cause.

Bayless

----- Original Message ----- 
From: "Luca Buraggi" <lburaggi <at> mate.it>
To: <nbusers <at> netbeans.org>
Sent: Sunday, October 01, 2006 11:01 AM
Subject: Re: [nbusers] Fix Import fails on both 5.0 and 6 Dev

> Yes, I created a new project with 1 class, just declaring :
> 
>   protected final Log log = LogFactory.getLog(getClass());
> 
> and Fix Import complains "No imports found for type: Log, LogFactory
> 
> If I insert manually the import, the compiler compiles the program 
> without errors.
> 
> 
> Luca Buraggi, senior IT consultant
> MATE - c.so Colombo 10, 20144 Milano
(Continue reading)

pajo | 1 Oct 19:56
Picon
Favicon

How to import a package?


Hi. First I'd like to say sorry about my english, I'm from Poland and still
learning ;)

I started learning JAVA and try to write first programms in netBeans. But
I've a problem connected with an example from 'Thinking in Java'. Author
gave us his packages, and I'd like to add (import) one of them to my
project. I copied it to C:\ drive so it looks like that:

c:\com\bruceeckel\ 

and there are directories (simple, simpletest, swing, tools, util)
containing classes. So what should I do to import it to my project? Please
help me because i can't find that kind of tutorial. Pozdro.
--

-- 
View this message in context: http://www.nabble.com/How-to-import-a-package--tf2365866.html#a6590952
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Standa Valenta | 1 Oct 20:52
Picon
Favicon

Re: How to import a package?

Hello pajo.
You have to add  jar file (or folder)  with this classes to your  
project library, before you want to use it. Just right-click to  
Library node in your project (projects window) and choose "add Jar/ 
Folder" ... or you can use the Library Manager (Tools > Library  
Manager ...)

Standa

On 1.10.2006, at 19:56, pajo wrote:

>
> Hi. First I'd like to say sorry about my english, I'm from Poland  
> and still
> learning ;)
>
> I started learning JAVA and try to write first programms in  
> netBeans. But
> I've a problem connected with an example from 'Thinking in Java'.  
> Author
> gave us his packages, and I'd like to add (import) one of them to my
> project. I copied it to C:\ drive so it looks like that:
>
> c:\com\bruceeckel\
>
> and there are directories (simple, simpletest, swing, tools, util)
> containing classes. So what should I do to import it to my project?  
> Please
> help me because i can't find that kind of tutorial. Pozdro.
> -- 
(Continue reading)

pajo | 1 Oct 21:14
Picon
Favicon

Re: How to import a package?


Thanks for reply.
I tried to do this (Rignt-click on libraries -> Add JAR/folder -> choose
c:\com) but when I want to import sth in code, eg. 'import com.bruceeckel.*'
or sth else, I receive an Error: package com.bruceeckel does not exist.
But there's mysterious thing - while writing import... pressing [ctrl+space]
- the components of this package             appears                :| 

What am I doing wrong? Greetings.

Standa Valenta wrote:
> 
> Hello pajo.
> You have to add  jar file (or folder)  with this classes to your  
> project library, before you want to use it. Just right-click to  
> Library node in your project (projects window) and choose "add Jar/ 
> Folder" ... or you can use the Library Manager (Tools > Library  
> Manager ...)
> 
> Standa
> 
> 
> On 1.10.2006, at 19:56, pajo wrote:
> 
>>
>> Hi. First I'd like to say sorry about my english, I'm from Poland  
>> and still
>> learning ;)
>>
>> I started learning JAVA and try to write first programms in  
(Continue reading)

Standa Valenta | 1 Oct 21:40
Picon
Favicon

Re: How to import a package?

Could you send the folder with classes?
Standa



On 1.10.2006, at 21:14, pajo wrote:

Thanks for reply.

I tried to do this (Rignt-click on libraries -> Add JAR/folder -> choose

c:\com) but when I want to import sth in code, eg. 'import com.bruceeckel.*'

or sth else, I receive an Error: package com.bruceeckel does not exist.

But there's mysterious thing - while writing import... pressing [ctrl+space]

- the components of this package             appears                :| 


What am I doing wrong? Greetings.



pajo | 1 Oct 21:50
Picon
Favicon

Re: How to import a package?


please: http://www.bobens.netstrefa.com.pl/for_nabble/

Standa Valenta wrote:
> 
> Could you send the folder with classes?
> Standa
> 
> 
> 
> On 1.10.2006, at 21:14, pajo wrote:
> 
>> Thanks for reply.
>> I tried to do this (Rignt-click on libraries -> Add JAR/folder ->  
>> choose
>> c:\com) but when I want to import sth in code, eg. 'import  
>> com.bruceeckel.*'
>> or sth else, I receive an Error: package com.bruceeckel does not  
>> exist.
>> But there's mysterious thing - while writing import... pressing  
>> [ctrl+space]
>> - the components of this package             appears                :|
>>
>> What am I doing wrong? Greetings.
>>
> 
> 
> 

--

-- 
View this message in context: http://www.nabble.com/How-to-import-a-package--tf2365866.html#a6592089
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Luca Buraggi | 1 Oct 22:14
Picon
Favicon

Re: Fix Import fails on both 5.0 and 6 Dev

Bayless,
I don't think the problem I encountered is the same you describes.
If Fix Import fails without indicate any kind of error then you probably 
are facing a know bug (very similar indeed) that should have been fixed 
in the 5.5 release (so I understood by forums). My case is slightly 
different: Fix Import seems to 'cache' some symbols as unresolved 
refusing from that moment on, to find them.

Luca Buraggi, senior IT consultant
MATE - c.so Colombo 10, 20144 Milano

Office: lburaggi <at> mate.it
Home: luca.buraggi <at> tiscali.it

Bayless Kirtley wrote:
> This is the same problem I had. Fix Imports did not cause funny stuff
> like flagging lines as bad. It simply could not find anything but did 
> not indicate any kind of error. Someone at Sun tried to help by 
> suggesting to remove some directories but it didn't help. I stopped 
> short of trying to reinstall Netbeans. It sounds like that must not 
> work either. I am sorry you are having the problem but I have to be 
> encouraged that I am not the only one. Maybe some of the gurus will 
> take it more seriously now that it seems to not be a one-time problem 
> and find the root cause.
>
> Bayless
>
>
> ----- Original Message ----- From: "Luca Buraggi" <lburaggi <at> mate.it>
> To: <nbusers <at> netbeans.org>
> Sent: Sunday, October 01, 2006 11:01 AM
> Subject: Re: [nbusers] Fix Import fails on both 5.0 and 6 Dev
>
>
>> Yes, I created a new project with 1 class, just declaring :
>>
>>   protected final Log log = LogFactory.getLog(getClass());
>>
>> and Fix Import complains "No imports found for type: Log, LogFactory
>>
>> If I insert manually the import, the compiler compiles the program 
>> without errors.
>>
>>
>> Luca Buraggi, senior IT consultant
>> MATE - c.so Colombo 10, 20144 Milano
>>
>> Office: lburaggi <at> mate.it
>> Home: luca.buraggi <at> tiscali.it
>>
>>
>>
>> Devon Miller wrote:
>>> If you create a new project from scratch, does the new project 
>>> exhibit the behavior?
>>>
>>>
>>> Luca Buraggi wrote:
>>>> Hi there,
>>>>
>>>> After months of regular service the Fix Import function on my 
>>>> Netbeans 5.0
>>>> suddendly stopped working properly.
>>>> The Fix Import fails finding some classes, showing them as uresolved
>>>> symbols,  even if these are definitely in the classpath (if I add 
>>>> maually
>>>> the import the Fix Import still goes on complaning but the source 
>>>> compiles)
>>>>
>>>> I read the forums on the topic without any result (deleting 
>>>> {user}/var/cache
>>>> didn't help) and a recently I installed
>>>> the 6 Dev version, importing all my 5.0 environment when asked by the
>>>> installation procedure.
>>>>
>>>> Apparently I imported the bug in the 6 Dev becouse nothing changed !
>>>> The behaviour if very strange: once a symbol if flagged as "always
>>>> unresolved" by Fix Import, it remains in this state even if I start 
>>>> a new
>>>> fresh project.
>>>>
>>>> At the moment I have all the log4j classess (Log, LogFactory, ...) 
>>>> and many
>>>> javax.persistence annotation classes that
>>>> are not anymore found.
>>>> I have a very tiny project (1 class, 1 statement) that shows this 
>>>> problem
>>>> ...
>>>> Could anyone help me ? I can send the project or whatever needed to
>>>> investigate the problem.
>>>>
>>>> Thank you
>>>>   
>>>
>


Gmane