Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

type collides with a package -netbeans 6.5

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Here is my code structure,



when I tried to build this application it shows the exception as:

com.stc.codegen.framework.model.CodeGenException: Error compiling source: Error compiling source: ProCFoo.Bar:63,-1:Foo cannot be resolved to a type
ProCFoo.Bar:63,-1:Foo cannot be resolved to a type
ProCFoo.Bar:130,-1:The type Foo collides with a package
ProCFoo.Bar:484,-1:The type Faacollides with a package


I have checked with the imported jar files and found it correctly given.

could anyone please suggest me where it would be wrong?


Thanks in advance
Preetha
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you tried changing package name ?
Did you see that no two classes from different package are clashing with each other ?
If you are using classes from jar then why you are rewriting them again ?
Where is your public class, does it exists ?
 
Preethi Dev
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried to change the package name but it gives JNDI error.

since this migration project i have checked with the edesigner 5 which is built without any errors. when I tried to build it in netbeans i face this issue.
yes,I am not using jar files for these since it has written.



please help me to locate the problem.

Thanks
Preetha

 
Preethi Dev
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please someone help me to solve this.


Thanks
Preetha
 
Preethi Dev
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is anyone there to help me?

Thanks
Preetha
 
Sheriff
Posts: 21999
107
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps nobody here knows the answer.
 
He baked a muffin that stole my car! And this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic