APIs / Open Source For Heuristic Search
Mar 26, 2015
In a web Application we have to identify labels and the associated fields using some Heuristic ways.
What is the best Java API for this? Also any other API or open source widely used for Heuristic search?
View Replies
ADVERTISEMENT
May 28, 2014
I am looking for pure java API to be able to create/read outlook tasks.
Any open source API's available for the same.
View Replies
View Related
Feb 10, 2015
I created a src folder called doc within my jar, and have several word documents stored there. When a button is clicked I request a document from this src folder to be opened in Microsoft Word. Right now I am using the following code:
JButton btnUn3E1 = new JButton("Unit 3 Ex 1");
btnUn3E1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
Desktop desktop = Desktop.getDesktop();
try{
File f = new File("docs/UNIT 3 EX 1.docx");
desktop.open(f);
}
catch(Exception ex){
}
}
});
When my program is run within the ide, all works well, but when compiled and converted to .exe it doesn't work. I have also tried the complete file path and still a no go.
View Replies
View Related
Jun 13, 2013
I am using infrared for monitoring performance of j2ee web application(using hibernate and spring),deploying on tomcat 7.0.23 and jdk 1.6.17.here infrared shows only http layer not sql and jsp layer.
View Replies
View Related
May 13, 2015
I want to add SMS functionality in my Java application. My question is what are the 3rd party APIs are available in Java for SMS.
I have heard about Simplewire, Ozeski they both are paid. Then I try to use kannel but that is written in C. (I have also downloaded its Java version[URL] .... but that is not working
How I can use 3rd API in my java programs?
View Replies
View Related
Jun 8, 2014
I wrote my own class to represent univariate polynomials and it works fine, but I was quite sure I was reinventing the wheel, and should obviously like to extend my program's functionality using other kinds of mathematical object.
I've been looking and there are of course open source libraries available which contain everything I'd want to do myself, and more, and probably better, saving me a lot of work.
However the usefulness of this kind of library extends far beyond simple practice and would be invaluable in developing more complex applications.
If I were to plan to write an application that I would at some point in the future like to compile into an executable and sell, would I need to take care about any open source libraries used that the compiler relies on? If so, would it be possible at that stage to use just the API and write my own classes replicating the functionality to avoid breaking license agreements?
The library I'm looking at right now is distributed under the Apache license.
View Replies
View Related
Mar 8, 2015
I'm getting hard time understanding(rather finding) how to setup step by step amazon product advertising API using SOAP request.
They have given the wsdl file but they did not tell how will the user use it.
View Replies
View Related
Sep 1, 2014
I'm trying to build a method that can search a binary search tree for a specific target and then return the number of probes it took to get there. It seems to me that the best way to do this would be a recursive search method and a counter that tracks the number of calls. But I'm struggling with how to implement this. Here's the code I have so far. what works/doesn't work with the method.
// Method to search the tree for a specific name and
// return the number of probes
public T search(BTNode<T> btNode) {
[Code]....
View Replies
View Related
Apr 22, 2014
I want to create a search method that returns the frequency of a word in the search method.
public class IndexTree {
private class TreeNode {
TreeNode left;
String word;
int frequency;
TreeNode right;
[Code] .....
View Replies
View Related
Oct 24, 2014
I want to develop a Java program that uses OpenScript APIs to test my applications. The OpenScript framework automatically creates the Java Code so I was thinking of either using this code or create my own using the APIs.
I tried both options using NetBeans but I'm getting errors everywhere starting with the library import. I'm pretty new to Java so I'm sure I'm missing a lot of things here. I pasted the code below from the OpenScript framework that want to use in a stand-alone file for your reference.,
import oracle.oats.scripting.modules.basic.api.*;
import oracle.oats.scripting.modules.browser.api.*;
import oracle.oats.scripting.modules.functionalTest.api.*;
import oracle.oats.scripting.modules.utilities.api.*;
import oracle.oats.scripting.modules.utilities.api.sql.*;
[Code] ....
View Replies
View Related
Aug 30, 2014
Have the following .bat file that compiles the ReadMindWave.java source with jna and jfreechart. I get a javac error saying 'no source' when the .bat is run, as the .java source needs to be included in the .bat file. Where it goes in the following .bat file?
@echo off
echo Compiling %1 with JNA and JFreeChart...
javac -Xlint:deprecation -cp "C:jna-master*;C:jfreechart-1.0.19libjfreechart-1.0.19.jar;C:jfreechart-1.0.19libjcommon-1.0.23.jar;."%*
The file to compile is in C:MindWaveTestsReadMindWave.java
View Replies
View Related
Jun 20, 2014
I notice when I look to download library jars, I keep ending up at Maven Repository: Search/Browse/Explore. I wonder is this really the de-facto place to download jars for java libraries? Right now I want to use the apache commons net library in order to build an imap server. And I find myself again mvnrepository:Is this where I should be downloading jar files?
View Replies
View Related
Jun 8, 2014
how to add an error message when my program can't find the file the user inputs.
For example:
Enter your source code:
D:Data StructsProjectssrcHelloWorld (I didn't put .java on purpose)
Exception in thread "main" java.io.FileNotFoundException: D:Data StructsProjectsAssignment 3srcHelloWorld (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at HomeworkDriverFour.main(HomeworkDriverFour.java:14)
//Can I get rid of the exception above and replace it with "File not found!"
Enter your source code:This is what I have so far:
import java.io.*;
import java.util.*;
public class HomeworkDriverFour {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
[code]...
View Replies
View Related
Apr 9, 2015
I am having errors but not sure why.
My two classes. I have pointed out the lines that are causing the errors. -
import gfx.SpriteSheet;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferStrategy;
[Code] .....
View Replies
View Related
Jan 22, 2015
when i try to compile following source file, there is a error which states "MovieTestDrive is public, so must be declared in a file MovieTestDrive.java" i didnot understand. i am beginner in java;
class Movie
{
String title;
String genre;
int rating;
void playit()
{
System.out.println("playing the movie");
}
}
public class MovieTestDrive
[code]....
View Replies
View Related
Apr 3, 2015
In using javac, I have installed the JDK, set the PATH and JAVA_HOME. When I run this:
"C:Program FilesJavajdk1.8.0_40injavac" -cp C:Gj_javacHTMLCarbonResults.java
I get: javac: no source files
Since I placed the source file path in the command line, I don't understand why it can't find the one .java file.
View Replies
View Related
Feb 28, 2015
java.awt.Component is an abstract class, and it's direct Sub-classes are Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, Text Component
So, when I use addXListener(mylistenerclass m);//which is a method of Component class which object is holding the list of all listeners, for a particular Event Source?
I am under the assumption that - there is an Event Source Object(possibly static) for every Event Source type(mouse, keyboard etc) that holds a list of destinations(classes that implements their listener interface) - added to the the object via addXListener method. When an event happens(mouse click, drag etc) the Event Source Object creates an Event Object and send it to all the destinations. Is my assumption correct? I can't seem to find the location or declaration of Event Source Object and the list where it stores it's registered destinations.
View Replies
View Related
Apr 10, 2014
my course material is due for term 1 of my cert 4 programming course, but My lecture will not pass my java projects because there is no source files generated for them in the net beans project structure, tried building, cleaning and building, all i can think of?, tried IDE's 7.4 and 8.0 .
View Replies
View Related
Jul 11, 2014
1.Is there any way by which i can see what is happening inside pre defined methods.
i.e. can i see there source code?
2.Somewhere i learned how to see the content of a pre defined class i.e. by using:
javap java.io.classname
but i dont know what javap means!
View Replies
View Related
Sep 9, 2014
I want to trace how many wifi signals are available near some source within some distance in JAVA. How do I do that?
View Replies
View Related
Mar 30, 2014
To be specific, how can I use enumeration of one source-code file in another.
View Replies
View Related
Jan 27, 2014
I downloaded JDK 7 file. But, I don't know how to use it. First of all, I even don't know how to open it.
There are some files in 'Java development kit', and the one I can play with is 'Java mission control'.
But it looks strange to me...and it looks it is not the way.. I want to compile files but, I can't find how to open java compiler.
View Replies
View Related
Feb 12, 2014
how to open a GUI on top of another GUI? I have built a GUI and have a button that when pressed I want to open a new GUI which is another java application within the project, it seems pretty straight forward and I just need to insert 'new [name of application]()'
Button btnEdit = new Button(shell, SWT.NONE);
btnEdit.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
new edit();
}
});
btnEdit.setBounds(76, 10, 75, 25);
btnEdit.setText("Edit");
View Replies
View Related
Feb 14, 2014
I am looking for a way to compile Java Source-Files at runtime and save them all in an executable jar; almost like an IDE would do. I know that there is the javax.tools package which provides a JavaCompiler interface and you can use ToolProvider.getSystemJavaCompiler() to get an instance of a compiler. However, this method has one important problem: it only works on machines that have the JDK installed. Not when only the JRE is installed.
I guess at this point that I need some kind of third party library that offers an implementation of a JavaCompiler. Unfortunately, this is really complicated to search for on the internet since all top listings when searching "compile java at runtime jre" do not really provide a solution to the problem.
I am writing a (somewhat) complex simulation software right now which is supposed to be used by people who have absolutely no knowledge of programming. At the same time, this software should provide the user with a certain amount of flexibility and control over the flow of the simulation.
My previous take on this problem was to build a complex system to interprete user settings from a GUI. I would basically read the GUI input, output it to some kind of own scripting syntax which I just quickly made up and have that interpreted at runtime. Then I realized, that is a silly concept and I threw it out before I got far into the developement.
The much better solution I came up with is taking the input from the GUI, create java source code from it and compile it at run-time. Seems much cleaner and nicer to me; will also probably have a better performance, but thats not really an issue anyways.
View Replies
View Related
Oct 9, 2014
"If you define a public class or an interface in your class, then it should match the name of the java source code file."
Does the statement above mean the following should compile fine ?
public class Animal{
public class Animal{ }
}
The author gives an example saying that if you have a class Multiple.java and in that class, you have:
public class Multiple{}, then it should compile.
But this does not compile. I tried it.
View Replies
View Related
Oct 19, 2014
I'm doing homework and as far as input, my assignment reads: "Your program must take as input the name of a Java source code file such as the source file containing the source code of this assignment." So my question is, how do i do that without linking the directory directly (i.e. C:/users/...)? I'm using FileReader as shown below...
public static void main(String[] args) throws Exception {
FileReader file = new FileReader (WHAT GOES HERE???);
BufferedReader reader = new BufferedReader(file);
String s = "";
String line = reader.readLine();
[Code] .....
View Replies
View Related