Solved

IDL/CORBA Compiler.

Posted on 2000-02-18
7
1,126 Views
Last Modified: 2008-03-03
Hi,
I am new in IDL/CORBA programming. I have downloaded "idltojava" compiler from the following site:
http://developer.java.sun.com/developer/earlyAccess/jdk12/idltojava.html

I wanted to compile the following StockMarket.idl program but it is giving error. I am working on Windows95.
Please let me know how to fix the problem.
Thanks,
sunanda
*******StockMarket.idl*********
module StockMarket {                                       typedef string StockSymbol;                                      
typedef sequence<StockSymbol> StockSymbolList;                  
                                                                 
interface StockServer {                                          
                                                                 
float getStockValue(in StockSymbol symbol);                      
                                                                 
StockSymbolList getStockSymbols();                              
                                                                 
};                                                              
                                                                 
};                                                              
                                        ********************************                        


 
0
Comment
Question by:skundu
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:diakov
ID: 2536694
What error did you get?

I compiled under jacorb and it did work.

module StockMarket
{

typedef string StockSymbol;                                      
typedef sequence<StockSymbol> StockSymbolList;                    
                                                                 
  interface StockServer
  {
    float getStockValue(in StockSymbol symbol);                      
    StockSymbolList getStockSymbols();                                
  };                                                                
};


There is nothing wrong with your idl.

Also what version of the idltojava do you use?

Cheers,
  Nik
0
 

Author Comment

by:skundu
ID: 2549150
Hi,

Thanks for help. This is JDK Version 1.2 Beta 2.
Here is the error:
In the MS-DOS prompt I enter:
idltojava-ea-win32 stockmarket.idl
It shows:
Archive: C:\download\idltojava-ea-win32.exe
caution: filename not matched: StockMatket.idl

Pls let me know (it is not the mismatch of the .idl file name, I entered and that exists, for sure).
thanks,
sunanda
0
 
LVL 8

Accepted Solution

by:
diakov earned 30 total points
ID: 2549424
Look my friend,

idltojava-ea-win32.exe is the archive of the idltojava compiler. Once you run it without parameters it will extract the real compiler and a couple of other files.
As I said, your IDL file is just fine, just extract the program first.

Nik
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:skundu
ID: 2556531
Hi,
Thanks again, but I am still having problem! I run the file idltojava-ea-win32.exe and it created a folder named idltojava-win32. The folder contains one file named idltojava-ea-win32.exe
when I run it like
>idltojava stockmarket.idl
It shows error again:
idltojava-ea-win32.exe: fatal error:
cannot preprocess input; No such file or directory.

Please help me fix it.Thanks.
sunanda
0
 
LVL 8

Expert Comment

by:diakov
ID: 2557114
you have to run with the following flag:
idltojava -fno-cpp test.idl

This turns off the preprocessor that deals with #include, #define, #undef

Cheers,
  Nik
0
 
LVL 8

Expert Comment

by:diakov
ID: 2557116
You can read about the other flags from the two html files that come out of the package.
0
 

Author Comment

by:skundu
ID: 2558899
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now