Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
-1
votes
0answers
19 views
Compile and Run the Java code in PHP script
I would like to compile and run a java code from PHP web page. I went through some forum and people suggest this exec(), mostly they pass in java file. But can this be done?
<?php
exec('java ...
0
votes
0answers
5 views
JavaFX Text bind to JodaTime DateTime property
I've got a simple Text field. I need to bind it to a static instance of JodaTime DateTime property. JodaTime gives me plenty of properties, but I can't figure out the solution.
All I need from the ...
0
votes
0answers
11 views
Is it possible to write Java SE socketserver using Apache, XAMPP, MySQL?
I have a prototype of client - server desktop system. Let's say that there are 2 clients - doctor and patient. Doctor has his own desktop Java app and patient has his own Java app - both are ...
0
votes
0answers
10 views
Downloading Files from SFTP using jsch
I am using JSCH to download files from SFTP server.
I am using single session, with multiple channels to download files from different folders located in SFTP.
For this downloading process I have a ...
0
votes
0answers
38 views
What language should my team learn next? Ruby? Scala? Other? [closed]
I am a Technical lead and I have a dev team (3 devs) that has a lot of experience with Java and we have a web app of ~6kLOC we maintain and add to running in Sprint/Tomcat.
I'd like to introduce them ...
0
votes
4answers
27 views
Java: Display float with precision of 30
I'm trying to calculate PI with some algorithms, but the main thing is to display it with precision of 30. I tried to output a string with format etc. But it seems that maximum precision of double is ...
0
votes
0answers
13 views
java TXRX send string
i'm trying to use the txrx java library to send strings by click listeners in my gui, but i can't edit the code of the txrx to send strings , where it only responds to input from the console, so how ...
2
votes
2answers
52 views
Storing 15,000 items in Java
I have a document with 15,000 items. Each item contains 6 variables (strings and integers). I have to copy all of these into some sort of two dimensional array, what the best way to do it?
Here are ...
0
votes
3answers
52 views
Returning a generic list in java
In my Java application, I'm storing the result of a REST call in a Response Object.
The response object has the following members
class Response{
boolean successful; //true if call did not result ...
0
votes
0answers
15 views
How best to run Ruby alongside Java (for a team new to Ruby)
I have a dev team that has a lot of experience with Java and we have a web app of ~6kLOC we maintain and add to running in Sprint/Tomcat.
I'd like to introduce them to Ruby on Rails (and learn it ...
0
votes
0answers
7 views
Netbeans Build Time Error in JSF
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="${forceRedeploy}"/>
</target>
ant -f ...
2
votes
2answers
25 views
Show ProgressDialog while other activity is loading
This question has been asked before, but the answers I've found weren't useful in my case.
When the user presses a button in Activity 1, Activity 2 is opened. Activity 2 has to load some data that ...
0
votes
1answer
19 views
Log file not populated with log info
I have below log4j.properties and the specified log file is not created. I am using log4j-1.2.13 version.
could please help me out.
**log4j.properties:**
log4j.logger.kmc.debug=INFO,console,file
...
0
votes
1answer
11 views
How to lock KeyListener while key is pressed
I added the following KeyListener to my button and noticed that if I hold any key down, it starts firing continuously as though I were pressing and releasing it very fast. I never release the key, yet ...
2
votes
1answer
24 views
Multi-threading in Scala — dealing only with immutibility
I have the code of Scala
class MyClass {
private val myData: Map[String, MyClass2] = new HashMap[String, MyClass2]()
def someMethod = {
synchronized(myData) {
val id = getSomeId
...