Solved

IDL/CORBA Compiler.

Posted on 2000-02-18
7
1,112 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:skundu
Comment Utility
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
Comment Utility
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
Comment Utility
You can read about the other flags from the two html files that come out of the package.
0
 

Author Comment

by:skundu
Comment Utility
Thanks.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

771 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

10 Experts available now in Live!

Get 1:1 Help Now