|
Are there any things that once can do ignorantly that can prevent a java web application from being cross platform? (windows/linux/mac)
Tools I am planning to use are java/spring framework/hibernate
Started by mrblah on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Not honoring case-sensitivity in filesystem
In addition to what Dan Dyer said:
calling executables... .
Using Runtime.exec() Using sun.* classes (this may cause portability issues with non-Sun JVMs) .
Using native libraries.
Hard-coding file separators/paths.
|
|
I am trying to learn Java, I was reading a tutorial that said something like this:
while (N <= 0) { TextIO.put("The starting point must be positive. Please try again: "); N = TextIO.getlnInt(); }
It seems like when you ask the user for input it suspends...
Started by John Isaacks on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Yeah() { return N != null; } public int getResponse() { return N.intValue(); } }
I fully recomend this book: Java.
But yes, synchronous I/O is typical of Java.
For asynchronous I/O, there is java.nio.
|
|
I would like a form a list of what nagging things of Java are history and by what feature of Scala has it been replaced.
I must admit I am new to Scala, so I cannot contribute much. But I feel, this list will be helpful for me as well as others to fully...
Started by ajay on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Scala is ....
Null is gone (mostly is for free.
Further, Java has Regular Expressions .
Mind you, actors may be a better model than Java threads , but I would be surprised if actors couldn't be implemented in Java.
Than Java.
|
Ask your Facebook Friends
|
Hi all. I'm working on a small java game which is a sort of clone of the 1995 game Theme Hospital. I've recently been working on the GUI and the Level structure now I have the path finding and grid working. My current way of "building stuff" consists ...
Started by Relequestual on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
A data driven solution.
Composition can sometimes keep things more flexible.
Practice, and it probably goes against Java conventions (I came to Java from dynamic languages always the answer.
|
|
Hi all,
I have a client connecting to my server. The client sends some messages to the server which I do not care about and do not want to waste time parsing its messages if I'm not going to be using them. All the i/o I'm using is simple java i/o, not...
Started by jbu on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Not sure of the implications of never reading from a buffer in Java -- I'd guess that eventually the OS.
|
|
I have a recursive algorithm which steps through a string, character by character, and parses it to create a tree-like structure. I want to be able to keep track of the character index the parser is currently at (for error messages as much as anything...
Started by Andrew Harmel-Law on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
In Java, arrays are also passed by reference rather than copied like.
It's kind of a hack, but sometimes I use an AtomicInteger, which is mutable, to do things like is a variation on this method...
|
|
How much of the Java SE api is actually written in Java itself?
Started by Michael on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It's pretty much as you'd expect - things which everything else is written in Java....
Of it is Java, but there are some low-level things that must be native code (graphics and file; there's also the OpenJDK source for 6 and 7 ).
|
|
Hi Stackoverflowers!
I am planning to write the SCJP exam soon, and I wonder if that will be helpful to get Graduate/Junior Java Programmer job. Exam seems to be easy to pass for some people.
What is the minimum scope of knowledge to start thinking about...
Started by Registered User on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In another two months, I took the exam, passed it, and was hired as a full-time Java intern within two months after, but there's nothing wrong with....
I started learning Java and after four months bought a textbook to study for the exam.
|
|
We've been developing a windows based application using Java for a while now, but NOW we want to make a mac port and have to reverse of code from Java 6 and Java 5. Is there any easy way to do this rather than re-coding Java 6 specific code? We'd like...
Started by DyreSchlock on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
You might be able to backport the additional libraries from Java 6 to Java 5, but I imagine Intel Mac Mini) running Leopard have Java 6, so perhaps you could just target them?
Apple released Java 6 on the latest version of....
|
|
So I've been programming in PHP and Python (and recently Ruby), and I was just wondering: should I just Java-based languages (or the Java implementations of languages) from now on, to take advantage of the immense collection of Java libraries? Would that...
Started by musicfreak on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
You will be missing things if you have no understanding of JavaI don't know about jRuby....
Even if you never translate a thing from libraries or Java code, the documentation for these ported influenced by the way Java works.
|