Click here to Skip to main content
15,887,676 members
Home / Discussions / Java
   

Java

 
GeneralRe: .jar File operations Pin
Richard MacCutchan13-Jun-11 21:33
mveRichard MacCutchan13-Jun-11 21:33 
GeneralRe: .jar File operations Pin
Liam S. Crouch14-Jun-11 1:06
Liam S. Crouch14-Jun-11 1:06 
QuestionI want some projects for SSH+EXTJS to learn Pin
FariyEye8-Jun-11 17:05
FariyEye8-Jun-11 17:05 
AnswerRe: I want some projects for SSH+EXTJS to learn Pin
David Skelly8-Jun-11 22:19
David Skelly8-Jun-11 22:19 
QuestionHow to detect if files are not being used by J2EE application in Eclipse Pin
MikoTheTerrible7-Jun-11 10:23
MikoTheTerrible7-Jun-11 10:23 
AnswerRe: How to detect if files are not being used by J2EE application in Eclipse Pin
TorstenH.7-Jun-11 20:40
TorstenH.7-Jun-11 20:40 
AnswerRe: How to detect if files are not being used by J2EE application in Eclipse Pin
Peter_in_27807-Jun-11 21:20
professionalPeter_in_27807-Jun-11 21:20 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
David Skelly7-Jun-11 22:42
David Skelly7-Jun-11 22:42 
It may not be that straight-forward if your project is using reflection. Suppose you do something like:

Class myClass = Class.forName("com.mycompany.stuff.MyThing");


If you remove the com.mycompany.stuff package from the project, this will still compile with no errors. But when it runs it will collapse in a smoking heap. (If you are using JUnit properly, that should catch it but even so, it's not a real solution.)

This could be a problem if you are using Spring, for example, which uses reflection to instantiate beans.

Or there may be files that need to be in your project (e.g. log4j.properties) that are not referenced directly by your own code, but are required for some third party library you are using. Yes, you can set up the log4j.properties file (or log4j.xml if you prefer) at deployment time but most projects I've seen include it in the build for convenience. Hibernate config files are another example that springs to mind.

I'm not sure that Java has the same concept of "referenced files" that .NET does. An awful lot is just picked up off the classpath at runtime. That makes it quite a bit harder to figure out which files are really "unreferenced".
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
Peter_in_27808-Jun-11 14:00
professionalPeter_in_27808-Jun-11 14:00 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
MikoTheTerrible8-Jun-11 4:00
MikoTheTerrible8-Jun-11 4:00 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
Peter_in_27808-Jun-11 13:56
professionalPeter_in_27808-Jun-11 13:56 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
MikoTheTerrible8-Jun-11 3:41
MikoTheTerrible8-Jun-11 3:41 
Questionhow to include web cam image in gui through applet Pin
steven8Gerrard6-Jun-11 20:33
steven8Gerrard6-Jun-11 20:33 
AnswerRe: how to include web cam image in gui through applet Pin
Richard MacCutchan6-Jun-11 21:55
mveRichard MacCutchan6-Jun-11 21:55 
QuestionI NEED HELP URGENTLY! Pin
Matjaz-xyz6-Jun-11 11:15
Matjaz-xyz6-Jun-11 11:15 
AnswerRe: I NEED HELP URGENTLY! Pin
Cedric Moonen6-Jun-11 20:59
Cedric Moonen6-Jun-11 20:59 
AnswerRe: I NEED HELP URGENTLY! Pin
TorstenH.6-Jun-11 21:02
TorstenH.6-Jun-11 21:02 
QuestionImage identification Pin
kartikdasani5-Jun-11 21:03
kartikdasani5-Jun-11 21:03 
AnswerRe: Image identification Pin
jschell6-Jun-11 9:16
jschell6-Jun-11 9:16 
QuestionHow to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 6:09
Bosah Chude2-Jun-11 6:09 
AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
TorstenH.2-Jun-11 13:10
TorstenH.2-Jun-11 13:10 
AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? [modified] Pin
xmxkkk2-Jun-11 19:14
xmxkkk2-Jun-11 19:14 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 22:48
Bosah Chude2-Jun-11 22:48 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
xmxkkk3-Jun-11 1:20
xmxkkk3-Jun-11 1:20 
Questionembed an excel sheet into a java GUI Pin
kartikdasani1-Jun-11 21:43
kartikdasani1-Jun-11 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.