eclipse

How can I run Java applications?

I created a Hello World SWT application using Eclipse and I was able to run it from Eclipse (everything works fine). But I wonder how other peoples (users) will run this kind of application. Should they install Eclipse, import my project and run it? It sounds strange. ...

Java assert nasty side-effect - compiler bug?

This public class test { public static void main(String[] args) { Object o = null; assert o != null; if(o != null) System.out.println("o != null"); } } prints out "o != null"; both 1.5_22 and 1.6_18. Compiler bug? Commenting out the assert fixes it. The byte code appears to jump directly...

Tomcat started in eclipse but unable to connect to link to http://localhost:8085/

I configured Tomcat Server 6.0.24 in Eclipse and started successfully with console display: Feb 17, 2010 4:24:31 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\...

How to get a class file by Eclipse?

I wrote an application in the Eclipse, which was successfully compiled and run. After that, in a corresponding directory I found *.java and *.class files. Then I have deleted the *.class file and now I do not know how can I get it back. Eclipse writes me "A class file was not written. The project may be inconsistent, if so try refreshi...

question about maven and eclipse

Hello, while running maven from eclipse you have option to execute these launch configurations by default .. here is the image of that : Now I can add my own launch configurations and execute them. Like this : Now instead of running run configurations every time, is it possible that I put my own launch configuration called "Clean i...

Why my Swing based GUI application is not responding?

I am trying to create my first GUI application using (Java + Eclipse + Swing). This is my code: import java.awt.*; import javax.swing.*; public class HelloWorldSwing extends JFrame { JTextArea m_resultArea = new JTextArea(6, 30); //====================================================== constructor public Hell...

eclipse : how to differentiate/distinguish different open workspaces

I will need to use multiple workspaces for a recent project. Each workspace might consist of 10 or more projects. When I'm switching between various applications and different eclipse instances(for the multiple workspaces), I want to be able to distinguish a given workspace easily without having to spend 5 seconds to know from the open ...

Eclipse-PDT code assist tooltip window size / font size

It's only a minor gripe but I have to resize the window to see the whole code assist tooltip and Eclipse doesn't remember the window size. Reducing the font size would do the trick but I can't figure that out either. I don't think it's platform specific but I'm on Eclipse 3.5 for Mac OS X. This Dupe implies that it works with Java but n...

Eclipse create runnable jar problem

Ok I created a new Java project in Eclipse with Java class and its main method. Then when doing an export - runnable jar I do not see my new project being listed in the "Launch Configurations" drop down. I can see other projects but not the newly created one. I'm I missing something? public class SSLTest { public static void main...

Why do you have to define dependencies twice in Eclipse RCP?

I have an Eclipse RCP plug-in project, called proj.a. I have another Eclipse RCP plug-in project, proj.b, which has a product definition file in it. This project uses depends on the proj.a plug-in. When I change proj.a, say to include JUnit tests, the dependency to JUnit is automatically added to the build path of proj.a. But when I ...

Js test driver plugin for eclipse ganymade.

I have been trying with the below update links. But they are not working. Is there any latest plugin available? http://js-test-driver.googlecode.com/svn/tags/1.2 http://js-test-driver.googlecode.com/svn/update/ ...

how to add map.jar into myproject in android?

hi all, i am working on mapactivity. map.jar file in sdk\add-ons path. how to add it in my project?? thanks.. ...

Debugging with Eclipse using multiple windows

I usually run a dual-monitor setup, so I have two Eclipse windows open for the same workspace, displaying different files. When I'm debugging and a breakpoint is hit, Eclipse switches to the "Debug" perspective, but it also shows the file/line where the breakpoint is in both of my windows. This occurs even if the file containing the brea...

eclipse via remote x on cygwin has tiny fonts

When I remote x with ssh -X -Y -C and then run eclipse (x client is my FC7 machine - yes it's old but I don't have time to upgrade it) and the x-server is cygwin 1.7 on windows. When I start eclipse on cygwin and open a file the fonts are tiny. Seem like they're about 8pt however eclipse has not "changed" the size. If i do this same...

Give eclipse more heap space for compiling projects?

Hi, I'm trying to compile really large program in eclipse (inherited it). When attempting to build the project, I get an out of heap space exception, so I can't ever compile it completely. Can I update the max amount of heap available to eclipse? This faq says I can put this in the ini file (or at least I'm interpreting it that way): ...

How to copy a function or class to another file?

hi, i am developing a plug-in in which i search where a particular method say 'aaa'is called. Then i find out the function in which this particular method 'aaa'is called.I want to copy this particular method or the class in which aaa is called to another file.How can i do that?Help ...

Exporting external classes into JAR - Eclipse

I have few class files that are required for my project. I have added them in the source folder itself in appropriate folder structure. My limitation is that I have to deliver a single jar file with all dependent classes. It cannot be an executable jar file. Now the problem I am facing is that when I selected export in eclipse to export...

Winpcap MinGW compile error

I'm experimenting with WinPcap 4.1.1 libraries for Windows, but I can't manage to compile even example source provided with the library. I'm getting these errors: 'PCAP_OPENFLAG_PROMISCUOUS' undeclared (first use in this function) 'PCAP_SRC_IF_STRING' undeclared (first use in this function) And bunch of warnings: implicit d...

Specifying .class files as resources and make them copied to output (bin) folder - Eclipse

How to make eclipse treat a directory containing class files as a resource directory and make it copied to the output folder (bin) ? My project Structure is like this src com package1 all source files (.java) image files package2 some dependent class files (.class) bin com package1 generated ...

Difference between exporting files through 'JAR' and 'Archive File' approaches - Eclipse

Is there any difference between exporting a jar file through JAR and Archive File options in eclipse? I am maintaining proper folder structure for a jar file (package structures) during export through Archive file option and I do not need any manifest file. ...