File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes A package related  Issue in Eclipse platform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "A package related  Issue in Eclipse platform" Watch "A package related  Issue in Eclipse platform" New topic

A package related Issue in Eclipse platform

Ronish Cheenath Raphael

Joined: Jul 05, 2005
Posts: 11
Hi All,

V have a problem regarding package name when v work with eclipse 3.1. Issue can be described as follows.

If the class name and the package name are the same in a folder, is there will be any conflict between these while using it. That means suppose a folder named 'animator' contain a package 'a' and a class name 'a'. I got any error in the 'Eclipse' tool that "a collides with a package". Is this can be solved by any change of setting in Eclipse? If then where can i change.? Can anybody help me to solve this issue??

example : Animator----mainfolder
-----Pack1 -- sub folder -- class
-----PackClass -- subfolder/package --class

if v importing PackClass to my class like

(import Pack1.PackClass) an error comes in Eclipse as

"conflict with package name"

But when v tried the same from dos promt ..its woking fine with out
any issue.

So I welcome ur replys,

thankxs In advance
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
Try capital A.

It's good practice to have class names start with a capital letter and instances of them not.

We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
I agree. Here's the link:
subject: A package related Issue in Eclipse platform
It's not a secret anymore!