Porting from an exotic programming language to Java
I'm working on a project using the Mozart development platform (http://www.mozart-oz.org). It is a wonderful platform for rapid prototyping and research, however it's very hard to sell the final product of our research (a middleware) to the industry. So we would like the investigate how we could make it work with Java. Have other people here faced the same kind of problem ? Would you advise for a full port of the whole project ? Or run the middleware in a separate process and write a Java layer to enable inter-process communication in a nice way ? Or maybe there are other schemes that work well we don't know of ? Maybe it's not the correct place to submit this question, in that case feel free to point me to better places.
The two times I've had projects like that to do it
turned out to be faster to do a complete rewrite.How big were these projects ? The project I'm involved with is evaluated to 20 man/month, so it's not a big project, but not a trivial one either.
>
If you're using Mozart for prototyping you shouldn't
use the code for your production package anyway...Agreed, the prototype we are working on is to be rewritten from scratch anyway. Still it will be faster for us to continue working on Mozart, under the condition we can easily make it available to other development platforms (we have hints on that, but no definitive responses). Could you explain why it was faster to go directly to the complete rewrite in our own experience ?
Similar Messages
-
I need to send a message via socket from a C program to a Java program
Hi,
I need to send a message via socket from a C program to a Java program. The message has three data: a long, an integer and a string.
How can I put those three fields in a array of bytes in C? How can I extract those same three fields from an array of bytes in java?
Thanks a lot!A few options:
JNI
Corba
Using sockets directly
take your pick. -
How to know if firefox is using a master password from a some programming language?
I am working in a security check project and I need know from an programming language or open some file if firefox is using a master password.
Generally speaking, there is nothing in the HTTP request to indicate to a server the type of window the request originates from. So you will have to manage it at the application level.
-
What generation of programming language is JAVA
For C is 3GL.
Then what about JAVA?
Thank you1.The 1stGL or first-generation language is machine language, strings of 1's and 0's that make the whole system work!
2.2GL or second-generation language is assembly language. A typical 2GL instruction looks like this: ADD 12,8
3.3GL or third-generation language is a "high-level" programming language, C or Java. A Java language statements look like this:
public boolean handleEvent (Event evt) { switch (evt.id) { case Event.ACTION_EVENT:
{ if ("Try me" .equald(evt.arg)) { A compiler converts the statements of a high-level programming language into machine language.
4.4GL or fourth-generation language is designed to be closer to natural "spoken". A 4GL language statement might look like this: EXTRACT ALL CUSTOMERS WHERE "PREVIOUS PURCHASES" TOTAL MORE THAN $1000 5.5GL or fifth-generation language is programming that uses a visual or graphical development interface to create source language that is usually compiled with a 3GL or 4GL language compiler. -
Open a console program via a java program
Hello
I don't know if this is the right forum's section for this question, but:
I want to open a program inside my java program and I want to receive messages from this running program.
My java program have to open a program and receive everything what this opened program prints on the screen.
Can anyone help me?
Everything will help: function names, examples, etc.
Thanks!This should be the best resource:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html -
What are the major differences between Java programming language and HTML or XML and why is it better?
Thanks for your response but I am dumb when it comes
to this stuff. I am taking an information systems
class and the professor is asking us to list three
different items that makes Java different from other
programming languages used and I thought posing that
question to this form would provide me the
information I was looking for. The text does not
state the answer he is looking for. Any help would be
great.
ThanksI'd assume your professor is asking you to do something called "research" where you go read stuff about it/them. What you're doing is called "just ask someone to tell some answers to turn in as my own", or in other words, "cheating". -
Calling a Java Subpackage from a C program.... fails
I am having alittle bit of trouble calling a java subpackage from my C program. I can call a package ok but not a subpackage.
My directory path is c:\com\phoenix_systems_inc
My CLASSPATH=.;c:\com;
In the c:\com\phoenix_systems_inc directory is my FundsgClient.class
The fundsgClient.java has a package declaration of
package com.phoenix_systems_inc;
within the fundsgClient.java is class:
public synchronized static String setValue (String str) {
String a = "You passed: " + str;
return a;
======================================
in my C program I have
options[0].optionString = "-Djava.class.path=c:\\com\\";
cls = env->FindClass("/phoenix_systems_inc/com.phoenix_systems_inc.FundsgClient");
I think that I am over declaring the path in FindClass.nope;; that is what I had initially;
My CLASSPATH is CLASSPATH=.;c:\com;
==================================C program code
memset (&vm_args, 0, sizeof(vm_args));
vm_args.version=JNI_VERSION_1_2;
vm_args.options = options;
vm_args.nOptions = 1;
options[0].optionString = "-Djava.class.path=c:\\com";
vm_args.ignoreUnrecognized = TRUE;
res = JNI_CreateJavaVM(&jvm,(void**)&env,&vm_args);
if (res < 0)
fprintf(stderr, "Can't create Java VM\n");
return 0;
cls = env->FindClass("com/phoenix_systems_inc/FundsgClient");
===== is the java class code ==========
package com.phoenix_systems_inc;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import gnu.cajo.invoke.Remote;
import gnu.cajo.utils.extra.Xfile;
* Fundsg RMI Client
* @author agesite
* @version 1.0
public class FundsgClient {
static {
PropertyConfigurator.configure("FundsLog.properties");
// Log4j logger
private static Logger log = Logger.getLogger("PhoenixClient");
// Get RMI Server Hostname
private static final String host = PhoenixClientProperties.getInstance().
getProperty("PhoenixRMIServer");
private static String port = "1198";
* request
* @param requestStr Request String
* @return String Response String
* @throws Exception
public synchronized static String request (String requestStr) throws Exception {
// Serialized object
RequestObject requestObj = new RequestObject();
requestObj.setRequest(requestStr);
if (log.isDebugEnabled()) {
log.debug("Client Request: " + requestStr);
System.out.println("//" + host + ":" + port + "/fundsgServer");
Object object = Remote.getItem("//" + host + ":" + port + "/fundsgServer");
String response = (String) Remote.invoke(object, "nativeFundsg", requestObj.getRequest());
if (log.isDebugEnabled()) {
log.debug("Server Response: " + response);
return response;
* xferFile
* @param sourceFile
* @param destFile
* @throws Exception
public synchronized static void xferFile (String sourceFile, String destFile) throws Exception {
try {
Object xf = Remote.getItem("//" + host + ":" + port + "/xfileFunds");
// remoteInvoke = true means transfer can be performed from
// server to client and vice versa
Xfile.remoteInvoke = true;
Xfile.fetch(xf, sourceFile, destFile);
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug("Xfile.fetch exception: " + e);
public synchronized static String setValue (String str) {
String a = "You passed: " + str;
return a;
} -
WLS JMS supports the clients developed by using non-java program languages,such
as,c++,VB?
The short answer is yes. This is a frequently asked question. I
suggest searching this newsgroup in google using terms like "C++",
"IIOP", ".NET", "JCOM".
Note also that WL 8.1 (now out in beta) contains a thin java client
(something like 0 or 300K without JMS, 700k with. The 0K client comes
from leveraging WL's IIOP support.)
Tom, BEA
jerry8006 wrote:
> WLS JMS supports the clients developed by using non-java program languages,such
> as,c++,VB?
-
I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.
Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
Windows on Intel Macs
There are presently several alternatives for running Windows on Intel Macs.
Install the Apple Boot Camp software. Purchase Windows 7 or Windows 8. Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows. Boot Camp enables you to boot the computer into OS X or Windows.
Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7. Parallels is software virtualization that enables running Windows concurrently with OS X.
VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7. VM Fusion is software virtualization that enables running Windows concurrently with OS X.
CrossOver which enables running many Windows applications without having to install Windows. The Windows applications can run concurrently with OS X.
VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris. It is not as fully developed for the Mac as Parallels and VM Fusion.
Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc. There are performance differences between dual-boot systems and virtualization. The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive. -
Access to Infrared port from Java MIDlet
Hey, I would like to know id its posible to access to the infra red port in the mobile phone using a Java MIDlet. I want to access to the port, read text information from the port and display this info in the screen.
ThanksHi,
E.g Siemens SL45i have own APIs to access to the phone's functions, but there's no standard for that in MIDP. -
Java Programming Language questions...???
Hi everybody....
Can I post here my questions about Java Programming Language....or only to to the relevant Sun's forum....http://forum.java.sun.com/index.jspa???
My greetings,
SimonSimon,
sure, the worst thing that could happen is that people point you to the SUN forum. Usually this forum answers general Java questions.
Frank -
Java programming language main method question?
Hello everyone I am quite new to the Java programming language and I have a question here concerning my main method. As you can see I am calling 4 others methods with my main method. What does the null mean after I call the method? I really don't understand is significance, what else could go there besides null?
public static void main(String[] args)
int cansPerPack = 6;
System.out.println(cansPerPack);
int cansPerCrate = 4* cansPerPack;
System.out.println(cansPerCrate);
have_fun(null);
user_input(null);
more_java(null);
string_work(null);
}Edited by: phantomswordsmen on Jul 25, 2010 4:29 PMphantomswordsmen wrote:
..As you can see I am calling 4 others methods with my main method. 'Your' main method? Your questions indicate that you did not write the code, who did?
..What does the null mean after I call the method?.. 'null' is being passed as an argument to the method, so there is no 'after the method' about it.
..I really don't understand is significance, what else could go there besides null? That would depend on the method signatures that are not shown in the code snippet posted. This is one of many reasons that I recommend people to post an SSCCE *(<- link).*
BTW - method names like have_fun() do not follow the common nomenclature, and are not good code for a newbie to study. The code should be put to the pointy end of your sword. -
Java programming language uses call by reference for objects?
Is Java programming language uses call by reference for objects?
Yes. You make calls to an object via itsreference.
No.Yes, you're referring to passing a reference into a
method in which case the value of the
reference is passed.I believe the OP is using the term "call by reference" to mean "pass by reference." The two are interchangable, AFAIK. So, while "making calls to an object via its reference" is correct, I don't believe it's germane to the question. -
Java is pure object oriented programing language or not why?
please clear
java is pure object oriented programing language or not why?And there is some concepts of object orientation that
Java not implements like: Operator
Overloading and Multiple Heritage. But, i think
that we can live without those features.
And the sucess of Java is a proof of this.I don't believe that operator overloading and multiple inheritance are required aspects of object programming. -
How to create an Oracle DATABASE through Java Programming Language.. ?
How to create an Oracle DATABASE through Java Programming Language.. ?
Oracle database administrators tend to be control freaks, especially in financial institutions where security is paramount.
In general, they will supply you with a database, but require you to supply all the DDL scripts to create tables, indexes, views etc.
So a certain amount of manual installation will always be required.
Typically you would supply the SQL scripts, and a detailled installation document too.
regards,
Owen
Maybe you are looking for
-
Photoshop 5.0 in Windows 8.1
I need to reinstall or migrate my existing PS 5 running on Widows 7 to a new computer. The current installation was a download from a lisenced site so no disks. Ho do I do this? can I create a crash disk/backup or use windows easy transfer?
-
How do I turn off pop up blockers on my ipad2?
How. Do o turn off pop up blockers on my iPad 2?
-
I found the TLF component in .net magazine issue 190. I went through the tutorial and everything went smooth execpt for adding images. After I insert the images and select send to stage, the images get deleted out of the editor and the stage doesn'
-
My phone says searching.. i cant call or anything whats going on
can i get some help.. my iphone says searching...i have no signal.. what is going on .
-
Block Time Machine backup of a single Exchange mail account?
Is it possible to tell Time Machine to not backup one particular e-mail account? speaking here about a corporate exchange account, accessed on my Mac only via Mail app.