Solved

IDL/CORBA Compiler.

Posted on 2000-02-18
7
1,164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

749 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