Tags "java" Result

Java compiler in java

Possible Duplicate: implementing a compiler in “itself” I was reading about the Java compiler and realized that it was written in Java. How can that be possible? I mean, isnt this like "Chicken and egg" problem? How can we write the compiler in the same language? Solution The original was written in C. Then you can write th

it1352 4 2019-05-22

Java

Hi I need help starting my Java work, this is the scenario: This system is intended to provide the school timetabler with information to support his/her timetabling activities. Please note it is not expected to schedule classes. The information required are the programmes, the core and option modules for each programme, the activities (lecture, se

it1352 2 2019-06-25

Java decompiler vs java disassembler

I am preparing core java and i got following doubt javap is dis-assembler or de-compiler? what is the difference between them? which java CLI commands are used ? Solution Javap is just an "informal" dis-assembler, its output gives you information about the bytecode, but is not suitable for it to be used by an "assembler", it is rather for it to b

it1352 1 2019-05-22

Scala - Java = ? (Or Clojure - Java = ?)

Is it possible for a developer to use Scala without knowing Java? Is it possible for a developer to use Clojure without knowing Java? Note: For example I am a C# developer and I use .NET without knowing any VB (Of-course WF 4.0 uses VB for statements, so I refuse any projects involving WF 4.0 :) ). Summary I: Thanks to all for your answers. Now

it1352 4 2019-05-13

java streams in Java 7

My question may be too broad and probably the answer is a simple NO, but I have to ask. Is there any equivalent implementation of (Java 8) streams* in Java 7? I am familiar with (Java 8) streams but my project requirement is to use Java 7. *Not to be confused with inputStream and outputStream. Solution In the official API, no. There is no mor

it1352 1 2019-05-21

Parsing Java code with Java

Is it possible to parse some Java code with a regex? So let's say I want a list of the int variables from this: int abc1 = 1; int abc2 = abc1 1; int abd3 = abc1 abc2; And I want to put these into an ArrayList. So something like this: private void parse(String s){ List<List<String>> variables = new ArrayList<List<St

it1352 2 2019-05-22

Execute Java code in Java

Possible Duplicate: Convert String to code in Java Dynamic code execution on Java I have a String containing : "for(int i=0 ; i<5 ; i ){System.out.println(\"*\");}" Can I execute the code in this String in Java? Solution Since Java 6, you can compile and run a Java compilation unit defined as a String or a File using standard APIs

it1352 4 2019-05-22

Java NullPointerException in Java Agent

I'm developing a java agent. I have an NullPointerException error which I do believe should not happen. Here is the debug console message: java.lang.NullPointerException at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:719) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:646) at COM.ibm.JEmpower.applet.http.Http

it1352 10 2019-05-22

java errors in dr java

I added import java.util.ArrayList; (per suggestions here) to my code and then I got 2 different kinds of errors. They are: error: the type of the expression must be an array type but it resolved to java.util.ArrayList<java.lang.Integer> and: error: length cannot be resolved or is not a field. Can anyone tell me what they mean? I've tri

it1352 4 2019-05-14

determine the root exception?

for the given exception stack, how the root exception (say it is UnknownHostException ) could be gained? [java] org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Couldn't send message. [java] org.codehaus.xfire.fault.XFireFault: Couldn't send message. [java] at org

it1352 3 2019-05-22