The Artima Developer Community
Sponsored Link

Java Answers Forum
java

3 replies on 1 page. Most recent reply: Jan 15, 2008 9:08 PM by g g

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
richa dhingra

Posts: 17
Nickname: quest123
Registered: May, 2007

java Posted: May 15, 2007 1:48 AM
Reply to this message Reply
Advertisement
Hello
WHenever i run any program in java an error is occured.
"Class File Collision : A resource exists with a different case /test/com/richa/rectangle.class". Can anyone help me on this topic.


Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: java Posted: May 15, 2007 2:53 AM
Reply to this message Reply
> Hello
> WHenever i run any program in java an error is occured.
> "Class File Collision : A resource exists with a different
> case /test/com/richa/rectangle.class". Can anyone help me
> on this topic.

Difficult to say for sure. At a guess, I'd say that you have a Rectangle.java (Capital R) file that you're trying to compile but is failing due to the presence of a rectangle.class (lower case r) file. Try deleting all your *.class files and recompiling.

V.

Sandeep Bhandari

Posts: 1
Nickname: sabhandari
Registered: Dec, 2007

Re: java Posted: Dec 20, 2007 7:17 AM
Reply to this message Reply
The problem is that you are defining two types(classes or interfaces) in the source file having name as Elephant and elephant. This is immaterial of whether you have defined a public type in the file because a separate class file is created for all top level types.
Solution: I would say that you try creating two files with name as elephant.class and Elephant.class on hard disk. The OS won't allow. I mean java treats elephant and Elephant as different but OS doesn't allow a separate file to be created with only case difference. change elephant or Elephant to elephant1 or Elephant1.

Hope it helps.
Regards,
Sandeep

g g

Posts: 1
Nickname: artimar
Registered: Jan, 2008

Re: java Posted: Jan 15, 2008 9:08 PM
Reply to this message Reply
java beginer

Flat View: This topic has 3 replies on 1 page
Topic: java Previous Topic   Next Topic Topic: xslt jsp

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use