Tagged Questions
0
votes
0answers
12 views
Jar not working with external resources
I tried to export my application that works fine when running on eclipse but not for its jar file.
My external resource is an xls file in \src\resources folder.
And my main function is in: ...
0
votes
0answers
32 views
what is the purpose of and IDE if you have to install/add things by hand?
this came because I downloaded last example quickstart kitchensink via JBossTools in eclipse
well, having updated my environment
- JDK 1.7.0_51 x64
- Kepler SR1 x64
- JBossTools for Kepler
...
0
votes
1answer
14 views
Java loading of resources fails when running executable maven jar file: unable to resolve “file:/…”
My issue is that when I build an executable jar with maven (using the shade plugin) and attempt to run the jar, I receive an error:
java.io.IOException: Unable to resolve ...
0
votes
0answers
12 views
The import com.facebook.android.AsyncFacebookRunner cannot be resolved
I am new to android and I am trying to share my app through facebook. But my AsyncFacebookRunner class is deprecated and so when I try to import it in my MaicActivity it says it can not be resolved. ...
0
votes
2answers
49 views
Import error in java
jp.co.wap.exam.lib.Interval can not be resolve
I am trying to define interval like
Interval interval1 = new Interval ("08:00"."09:00");
Its gining error Interval can not be resolve . I am ...
0
votes
1answer
26 views
Need assistance with getCartTotal()
I am having a little problem with some java code I am working on in eclipse to make a mobile app shopping site sort of doohicky lol...
The rest of my code is fine but I am struggling a little with ...
0
votes
0answers
11 views
Add content to an document in Couch DB
I am using CouchDB as my database and i am abel to add new documents to it via my RESTful Webserver.
I am now trying to add additional info to my added documents, but I can not quite figure out how ...
0
votes
1answer
31 views
xml file reader shows no errors but says there is an error [on hold]
My XML file reader code shows no errors at all. But when I run the code then says there's an error where I have put in //Line 5 not sure what exactly is wrong with it but it was working perfectly fine ...
0
votes
0answers
30 views
Eclipse Kepler need to restart to load all modules
When Eclipse Kepler starts, I get exceptions because it couldn't load modules.
The error is:
An internal error occurred during: "Validating GWT components".
...
0
votes
0answers
9 views
An issue in [teamcenter] plugin development
I try to create a simple plugin for rich-client customization for TeamCenter 8.
I've found out how to run (from java-code) a modal-QtBased-dialog loaded from Dll (with export c-function).
BUT I can't ...
0
votes
1answer
30 views
Multiple css classes on one element in e4
I tried to design some components in a e4 RCP application with css.
One thing I stumbled upon was that when you execute
cssEngine.setClassname(composite, "class1");
...
0
votes
0answers
14 views
Connection to Hive throwing Exception
I am trying to connect to Hive, am successful in connecting but it throws this exception:
2014-01-17 17:09:23 DEBUG Configuration:227 - java.io.IOException:
config() at
...
0
votes
0answers
13 views
Programmatically Creating FTP users in IIS Manager [on hold]
How could i automate the process of adding IIS Manager Users and their Permissions using a Java Method.
0
votes
1answer
61 views
How to invoke Akka helloworld?
Below is the code taken from http://doc.akka.io/docs/akka/2.2.3/AkkaScala.pdf
import akka.actor.Actor
object Greeter {
case object Greet
case object Done
}
class Greeter extends Actor {
def ...
1
vote
2answers
21 views
com.sun.jdi.InvocationException occurred invoking method toString when using switch-case inside it
When I try to visualize the toString() value of my object during debug, I receive this message.
My toString method is this:
@Override
public String toString(){
String s = "ACTION: ...
0
votes
1answer
34 views
Unable to create Maven project in eclipse
Don't know where the problem exactly is.
When trying to create a Java Maven simple project (war, if that means anything) from scratch in Eclipse Helios (also tried Kepler) I get the messages below:
...
0
votes
0answers
47 views
How to compare images?
For a project I am making a memory game, but I am trying to make to objects disappear when the are equal. This is my code:
public void opencard(){
int duiker = 0;
int duiker2 = 0;
if ...
0
votes
0answers
21 views
Java - ApectJ corrupted Eclipse?
I installed AJDT plugin from eclipse site. Then created Aspectj project. And if I saved anything in there, it started building workspace forever. I tried to close Eclipse, but needed to force close it ...
0
votes
0answers
41 views
Debug my location code for android app
i am building a app that will return me location coordinates in a toast. i am posting my code here, it is not giving any error but not showing Toast let me show you my code.
These are my imports.
...
0
votes
1answer
13 views
Running Tomcat in Eclipse and getting “Exception loading sessions from persistent storage”
I use Eclipse Kepler to develop a Sprig/Hibernate/PostgreSQL-based application. The application is run in Tomcat which is managed by Eclipse. This works fine generally.
After modifying and saving any ...
0
votes
2answers
36 views
Eclipse: adding resources to Jar
I am trying to export an application I am building, but I have run into some trouble. It can't seem to load one of the resource files. The resource file is located in one of the packages in my src ...
0
votes
0answers
17 views
Code coverage of JBOSS application with JUnit and Eclipse
My goal is to get code coverage reports after running a JUnit test-suite in Eclipse. Most of the code I want to get coverage report from is running on a JBoss application server.
I have Eclemma set ...
0
votes
2answers
41 views
How do I know if I'm looking at Java interface or implementation file in Eclipse
I'm working with an old Java project, which uses the naming convention where interface is named MassiveWormholeGenerator and its implementation is named MassiveWormholeGeneratorImpl. Point is that the ...
-2
votes
2answers
33 views
Three “cannot be resolved to a variable” errors in Android app [on hold]
In this part of my code I have three errors:
String uri = String.format(Locale.ENGLISH, "geo:%f,%f", latitude, longitude);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
...
1
vote
1answer
43 views
Set breakpoint on package in Eclipse
I have big project. I want to suspend execution(begin debug) in condition if began to perform code base from necessary package of source code.
Is it possible in eclipse?
0
votes
2answers
21 views
Eclipse: How to see methods supported by variable's type during debugging ?
During editing Eclipse gives suggestions for the methods that I can call on a variable. Is there a way to see those suggestions during debugging, maybe in the variables window or maybe in some other ...
0
votes
2answers
23 views
how to get path in spring to access configuration file
I have written a spring program where there are following classes,interface and xml files are there in different packages ...I used eclipse kepler.
My problem is that when I am executing ...
0
votes
2answers
18 views
In DDMS, where does hprof file store
In Android developing, I use DDMS to debug the memory leak problem.
When I press "Dump HPROF file", what directory does the generated hprof file store?
0
votes
1answer
27 views
Run Maven, Gradle or other batch-based script from Java (and then Eclipse)
I am making Eclipse plugin that run alternative build from within Eclipse
(e.g. for project that have both pom.xml and build.gradle do run with mvn package or gradle build)
But entry point for both ...
0
votes
0answers
17 views
http request + port 8443
Good Day!
My question is quite similar like this (accessing port 8443 with http in tomcat), however the question was not answered.
I am developing a site and I am using Eclipse Juno and Tomcat 7.
I ...
-1
votes
1answer
30 views
failed to save new file with time stamp
i want to save file into sd card and i use timestamp so if already have a file with the same name are not replaced
this is my code
public void onClick(View v) {
// TODO Auto-generated ...
0
votes
1answer
47 views
How can I stop Eclipse's auto-completion feature from suggesting made up variable names?
I've set up Content Assist to trigger on aAbBcCdDeEfFgGhHjIiJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ.() rather than only on .( (Under Window/Preferences/Java/Editor/Content Assist->Auto activation triggers ...
2
votes
2answers
27 views
How to read from a properties file in Eclipse Java Dynamic Web Project?
I think I exactly want to do what he does here
But with me it's a little different. I started with a check whether the file exists:
File f = new File("properties.txt");
...
0
votes
0answers
10 views
Aptana Studio 3 Can I import an existing Java web project from Eclipse workspace and vice versa?
Recently, situations demand that i use a lot of Jquery and associated plugins. I have tried the aptana plugin for eclipse. Its helpful but it doesn’t go beyond JQ 1.9 version. and any plugins I ...
0
votes
0answers
7 views
How can I make the embedded jetty simple server from “https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty#Creating_a_Server” find my project?
I copied a the simple server and the HelloHandler from
However, When I run the code and request it from my browser with localhost..., it states "Not Found"
Yes, both the jetty server I created and ...
0
votes
1answer
13 views
Trying to start GrizzlyServer - failed to start listener - adress already in use
static HttpServer server;
static Datenbank db = new Datenbank();
public static void main (String[] args) throws InterruptedException, IOException{
startServer();
db.dbinfo();
...
3
votes
1answer
47 views
jOOQ not generating DAOs with <daos> flag set to true
I have refreshed my project, cleanly rebuilt it, Googled/searched StackOverflow for similar problems, read the jOOQ documentation, examined the build output for potential issues, etc.
I added a ...
0
votes
0answers
23 views
can't play audio File with JMF
I have a problem with playing an MP3 file with JMF, it displays the following error :
Error:
Unable to realize com.sun.media.amovie.AMController@80669d Exception in thread "main"
...
0
votes
3answers
53 views
ClassNotFoundException with Spring sample projects
I'm trying to run the most up to date spring sample projects in eclipse but i'm always getting ClassNotFoundException. (For example with spring-mvc-showcase project)
Environment:
Ubuntu 12.04, ...
0
votes
0answers
15 views
Registering a second Resource to my Server using CouchDB as my database
I am trying to set up a Restful Webservice and I know it should not be hard, but I am having some difficulties. I am using CouchDB as my database and lightcouch as an API.
I have written some ...
0
votes
1answer
23 views
Compiler and run java program on mac terminal
I have written a compiler program and now I am trying to run it from terminal. I am using antlr library inside my program. This code works pretty well when compiled using eclipse.
I am using the ...
0
votes
1answer
26 views
Error on binding in registry when using RMI
I write a simple program using RMI. When I want to bind a service to registry, it throws this exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
...
0
votes
0answers
19 views
What is a popular JavaDoc practice for ASCII-art documentation?
I'm working on a project written in Java, designed to transmit data via a messaging system that strictly defines the bit position of the messages fields. This means we have an entire library of ...
-1
votes
1answer
8 views
Android Ksoap2 - complex type - responsenull
I am using ksoap2 to call the java webservice in Android.
my WSDL
and my MainActivity
public class MainActivity extends Activity {
/** Called when the activity is first created. */
private static ...
0
votes
2answers
24 views
save textfile into sd card
I want to save the file to the text in the sd card, after following some tutorials I get a reference about the coding should I use.
but after I run it does not work, just get the message "saved files ...
-3
votes
2answers
32 views
Problems with String Input [duplicate]
So, for some reason I'm having problems just USING a string input.
I don't know why. Maybe it's some incredibly stupid thing everyone knows, but I don't.
Here's the non-functioning code:
import ...
0
votes
0answers
22 views
Eclipse Kepler, Java was Started but returned Exit code=13 [duplicate]
I Have been Facing Problem with Eclipse with the Following Error:
0
votes
1answer
48 views
No error but the Application Crash
I am new to android database. I'm creating an application following a youtube tutorial about database http://www.youtube.com/watch?v=TApjQ-LFNpI.
I followed everything and, when I run the application ...
0
votes
1answer
23 views
POI cannot open workbook to open .xls files and eclipse throw an exception
When I try to open a .xlsx file in POI, I get an exception:
java.lang.IllegalArgumentException: The supplied POIFSFileSystem does not contain a BIFF8 'Workbook' entry. Is it really an excel ...
-2
votes
1answer
16 views
java.lang.ClassCastException: org.eclipse.xtext.impl.KeywordImpl cannot be cast to org.eclipse.xtext.RuleCall
After upgrading Xtext in my Eclipse from 2.3.1 to 2.4.3, I see these errors in the log:
org.eclipse.xtext.parser.ParseException: java.lang.ClassCastException: org.eclipse.xtext.impl.KeywordImpl ...