JAAS - problem in compiling the program
Hi,
I am working on JAAS .
I tried the Authorization example given in this link of sun site.
http://java.sun.com/javase/6/docs/technotes/guides/security/jaas/tutorials/GeneralAcnAndAzn.html
I was trying to compile that program but SamplAzn.java..is not compiling.
when I try it given the error below :
--------------------Configurat
ion: <Default>--------------------
D:\AZN\sample\SampleAzn.java:135: cannot find symbol
symbol : class SampleAction
location: class sample.SampleAzn
PrivilegedAction action = new SampleAction();
^
Note: D:\AZN\sample\SampleAzn.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Process completed.
--------------------------------------------------------------------------------So,What should I do ?
Thankx..
Yes , I created the directory structure as given in the link.
I can compile all other ".java" file.
But I don't know why I can't compile SampleAzn.java file.
Similar Messages
-
How can i compile the program?
hi,everybody:
I have a program which include the next statments:
public void println(boolean flag)
throws IOException
Object obj = lock;
obj;
JVM INSTR monitorenter ;
print(flag);
newLine();
obj;
JVM INSTR monitorexit ;
break MISSING_BLOCK_LABEL_26;
Exception exception;
exception;
obj;
JVM INSTR monitorexit ;
throw exception;
how can i compile the program?
thanksHi,
I'm trying to figure out how to use this decompiler, I have downloaded it to windows 2000 platform and it unzips to 1 file with extension "1-bin" - OS doesn.'t know what to do with and neither do I ;) - I'm starting out on something here and this tool would be useful.
Thanks for any install instructions you might have.
mufc1999
Hi,
I've had a similiar problem with decompiling certain
classes. Try the following decompiler,
http://jrevpro.sourceforge.net, after using this one,
the code decompiled fine, this tool is also a
disassembler and quite a nifty one i might add. :)
Hope this helps!
Have Fun! -
I have a Tour 9630 and just installed v6.0 and receiving an error window "Blackberry Desktop Software has stopped working. A problem as caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." I have not received any message from Windows after 2 days. Has anyone experienced this problem? If so, I would appreciate any guidance. I have Windows 7, if that matters. Thank you. in advance.
Hi somewhatstock
How far did you get with them? Did they have any ideas what might be causing the problem? Trying to work on it myself, so trying to eliminate what others might have tried. Curious why it works on my Desktop however. Losing tethering really causes problems as I rely on tethering with my laptop quite a lot.
Any information most welcome,
regards,
John -
Hello!
I've had the student version of the Adobe Creative Suite 5.5 Design Premium software for several years now.
When I received my Windows 8 computer I installed the software with no issue.
Last week when I tried opening Photoshop I get the following error: "Adobe Photoshop CS5.1 has stopped working.A problem caused by the program to stop working correctly. Windows will close the program and notify you if a solution is available."
I deactivated and uninstalled the entire Creative Suite then reinstalled it. I am able to open the other programs, but still receive the same message for Photoshop.
What can I do?I found the issue was with the Nik Filters I was using. The filters were messing with Photoshop's initializing. I uninstalled and reinstalled the filters and now Photoshop works like a charm.
It appears this forum is dead?!
Thankfully, I was able to troubleshoot on my own and figured out the problem... -
iTunes keeps shutting down when I open it up. The message says iTunes has stopped working. A problem has caused the program to stop working correctly. Windows will close the program and notify you if a solutions is found.
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried something like the above then try opening iTunes in safe mode (press and hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud Purchases. You may find that iTunes opens normally now.
tt2 -
PSE 8 problems to start the program
Hello!
Just download the PSE8 today and I can´t get it launched? The edit-program start but the organixer doesn´t. Either I can´t launched the share-programs or the program to make albums.
Someone out there who can help me?
SE-MJAHello!
I got the same result.
The program can´t launch the "read in workspace for Elements Oganizer". It´s try to launch but be freeze and then nothing happens.
It´s bad because I think the program was good. Now I think I will reclaime the produvt and get my money back.
Regards!
Micke
Date: Wed, 7 Apr 2010 04:22:09 -0600
From: [email protected]
To: [email protected]
Subject: PSE 8 problems to start the program
Have you located the program file to ensure it is properly installed?.
If not, click on the start button and type PhotoshopElementsEditor.exe (note caps and no spaces) into the search box.
The program, if available, should appear with a blue PSE icon in the search results.
Right click on it and select send to desktop.
Then try to open the editor from the desktop by clicking on the icon.
> -
FROM WINDOWS (VISTA) A PROBLEM HAS CAUSED THE PROGRAM TO STOP WORKING CORRECTLY. WINDOWS WILL CLOSE THIS PROGRAM AND NOTIFY YOU IF THERE IS A SOLUTION. UPDATED TO THE LATEEST, I WOULD RATHER NOT HAVE AUTO UPDATES. [email protected] edit
You may select how and whether Firefox updates, although like most software it may be sensible to keep it up-to-date, it is more likely to remain secure and compatible with other software whilst up to date.
* for information on the options available see [[Updating firefox]] <--- clickable link --- -
Problems with compiling the BlackJackServer program
hello.
this is james mcfadden. I have developed a multiplayer BlackJack card game in Java. the game consists of six programs: BlackJack.java, BlackJackServer.java, BlackJackClient.java, Card.java, Deck.java, and Hand.java. i got most of the game code from http://www.netsoc.tcd.ie/~duncan/dev/java/games/blackjack/. When i compile the server i get the following errors (i've also included the source code in this message):
----jGRASP exec: javac -g X:\NETPROG\Assignment2\BlackJackServer.java
BlackJackServer.java:56: cannot find symbol
symbol : method getSource()
location: class BlackJack
bj.getSource();
^
BlackJack.java:176: cannot find symbol
symbol : method getCodeBase()
location: class BlackJack
card_images[current_card_loading]=getImage(getCodeBase(),"cards/"+(current_card_loading+1)+".gif");
^
BlackJack.java:197: cannot find symbol
symbol : constructor Deck(BlackJack,java.awt.Image[])
location: class Deck
deck=new Deck(this,card_images);//Create a new deck object
^
3 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.
how do i go about fixing these errors?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class BlackJack extends JFrame implements ActionListener,Runnable{
private Deck deck;//The deck
private Hand player_hand;//player hand
private Hand dealer_hand;//dealer hand
private JButton bHit=new JButton("Hit");
private JButton bStay=new JButton("Stay");
private JButton bRestart=new JButton("New Game");
//lets do some double buffering
Image offIm=null;
Graphics offGraphics=null;
Dimension offDimension=null;
Image[] card_images=new Image[52];
private boolean cards_loaded=false;
private int current_card_loading=0;
String message;//print a message
int width;//The width of the applet
int height;//The height of the applet
int card_width=-1;
int card_padding=-1;//How much should we pad the cards by?
private int games=-1;//How many games have been played?
public BlackJack(){
Thread card_loader=new Thread(this);
card_loader.start();
public static void main(String[] args){
JFrame frame=new JFrame("BlackJack");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(500,500);
frame.setLocation(200,200);
BlackJack bj=new BlackJack();
frame.setContentPane(bj);
frame.setVisible(true);
public void newGame(){
bHit.setEnabled(true);
bStay.setEnabled(false);
player_hand=new Hand();//Create new hands
dealer_hand=new Hand();
//shuffle the deck.
deck.shuffleCards();
games++;
public void hit(){
bStay.setEnabled(true);
player_hand.addCard(deck.dealCard());
if(player_hand.getValue()>21){
message="You loose! (score:"+player_hand.getValue()+")";
//disable the hit and stay buttons...
bHit.setEnabled(false);
bStay.setEnabled(false);
return;
message="Score: "+player_hand.getValue();
public void stay(){
while(dealer_hand.getValue()<17){
dealer_hand.addCard(deck.dealCard());
if(dealer_hand.getValue()<=21&&player_hand.getValue()<dealer_hand.getValue()){
message="You loose! ("+player_hand.getValue()+" - "+dealer_hand.getValue()+")";
else if(player_hand.getValue()==dealer_hand.getValue()){
message="You draw! ("+player_hand.getValue()+")";
else{
message="You win! ("+player_hand.getValue()+" - "+dealer_hand.getValue()+")";
bHit.setEnabled(false);
bStay.setEnabled(false);
public void actionPerformed(ActionEvent e){
if(e.getSource()==bRestart){
newGame();
else if(e.getSource()==bHit){
hit();
else if(e.getSource()==bStay){
stay();
repaint();
public void paint(Graphics g){
update(g);
public void update(Graphics g){
//lets sord out double buffering
if(offGraphics==null){
offIm=createImage(getSize().width,getSize().height);
offGraphics=offIm.getGraphics();
if(!cards_loaded){
//display a message saying we're loading the cards...
offGraphics.setFont(new Font("Arial",Font.PLAIN,14));
offGraphics.setColor(new Color(171,205,239));
offGraphics.fillRect(0,0,getSize().width,getSize().height);
offGraphics.setColor(Color.black);
offGraphics.drawString("Loading cards... ",5,20);
offGraphics.drawRect(15,40,102,10);
offGraphics.drawRect(13,38,106,14);
offGraphics.setColor(new Color(171,205,239));
offGraphics.fillRect(0,0,150,35);
offGraphics.setColor(Color.black);
offGraphics.fillRect(15,40,(current_card_loading)*2,10);
offGraphics.drawString("Loading card: "+current_card_loading+1,15,20);
else{
Image currentCard;
while(card_width==-1){
card_width=deck.getCard(0).getImage().getWidth(this);
if(card_padding==-1){
card_padding=(width-(card_width*2)-4)/4;
//clear the background
offGraphics.setColor(Color.blue);
offGraphics.fillRect(0,0,width,height);
offGraphics.setColor(Color.black);
offGraphics.fillRect(1,1,width-2,height-2);
offGraphics.setColor(Color.white);
offGraphics.drawString("PLAYER:",card_padding,40);
offGraphics.drawString("DEALER:",(width/2)+card_padding,40);
offGraphics.drawString(message,5,height-20);
if(games>0){
offGraphics.drawString(games+" game(s) played...",5,height-10);
//Draw the players hand
for(int i=0;i<player_hand.getCardCount();i++){
currentCard=player_hand.getCards().getImage();
offGraphics.drawImage(currentCard,card_padding,70+(20*(i-1)),this);
//now draw the dealers hand
for(int i=0;i<dealer_hand.getCardCount();i++){
currentCard=dealer_hand.getCards()[i].getImage();
offGraphics.drawImage(currentCard,(width/2)+card_padding,70+(20*(i-1)),this);
//draw buffered image
g.drawImage(offIm,0,0,this);
public void run(){
MediaTracker t=new MediaTracker(this);
System.out.println("Frame getting cards...");
for(current_card_loading=0;current_card_loading<52;current_card_loading++){
card_images[current_card_loading]=getImage(getCodeBase(),"cards/"+(current_card_loading+1)+".gif");
if(card_images[current_card_loading]==null){
System.out.println("Null card... ["+current_card_loading+"]");
else{
t.addImage(card_images[current_card_loading],0);
try{
t.waitForID(0);
catch(InterruptedException e){
System.err.println("Interrupted waiting for images..>");
//lets show our new status
repaint();
//create the deck object now
deck=new Deck(this,card_images);//Create a new deck object
card_width=deck.getCard(0).getImage().getWidth(this);
bHit.addActionListener(this);
bStay.addActionListener(this);
bRestart.addActionListener(this);
bHit.setEnabled(false);
bStay.setEnabled(false);
width=getSize().width;
height=getSize().height;
this.add(bHit);
this.add(bStay);
this.add(bRestart);
player_hand=new Hand();//Create the hands
dealer_hand=new Hand();
//make sure that the buttons appear properly
this.validate();
message="";
cards_loaded=true;
System.out.println("End of thread...");
repaint();
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.*;
import javax.swing.*;
public class BlackJackServer extends JFrame{
//Text area for displaying contents
private JTextArea jta=new JTextArea();
public static void main(String[] args){
new BlackJackServer();
public BlackJackServer(){
//Place text area on the frame
setLayout(new BorderLayout());
add(new JScrollPane(jta),BorderLayout.CENTER);
setTitle("BlackJack Server");
setSize(500,300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);//It is necessary to show the frame here!
try{
//Create a server socket
ServerSocket serverSocket=new ServerSocket(8000);
jta.append("Server started at "+new Date()+'\n');
//Listen for a connection request
Socket socket=serverSocket.accept();
//Create data input and output streams
DataInputStream inputFromClient=new DataInputStream(socket.getInputStream());
DataOutputStream outputToClient=new DataOutputStream(socket.getOutputStream());
while(true){
//Receive bet from the client
float bet=inputFromClient.readFloat();
//Compute double the bet
float doublebet=bet+bet;
//Send double the bet back to the client
outputToClient.writeFloat(doublebet);
jta.append("Bet received from client: "+bet+'\n');
jta.append("Double the bet found: "+doublebet+'\n');
catch(IOException ex){
System.err.println(ex);
BlackJack bj=new BlackJack();
bj.getSource();
}//end class BlackJackServer
import java.io.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class BlackJackClient extends JFrame{
//Text field for receiving bet
private JTextField jtf=new JTextField();
//Text area to display contents
private JTextArea jta=new JTextArea();
//IO streams
private DataOutputStream toServer;
private DataInputStream fromServer;
public static void main(String[] args){
new BlackJackClient();
public BlackJackClient(){
//Panel p to hold the label and text field
JPanel p=new JPanel();
p.setLayout(new BorderLayout());
p.add(new JLabel("Enter bet"),BorderLayout.WEST);
p.add(jtf,BorderLayout.CENTER);
jtf.setHorizontalAlignment(JTextField.RIGHT);
setLayout(new BorderLayout());
add(p,BorderLayout.NORTH);
add(new JScrollPane(jta),BorderLayout.CENTER);
jtf.addActionListener(new ButtonListener());//Register listener
setTitle("BlackJack Client");
setSize(500,300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);//It is necessary to show the frame here!
try{
//Create a socket to connect to the server
Socket socket=new Socket("localhost",8000);
//Create an input stream to receive data from the server
fromServer=new DataInputStream(
socket.getInputStream());
//Create an output stream to send data to the server
toServer=new DataOutputStream(socket.getOutputStream());
catch(IOException ex){
jta.append(ex.toString()+'\n');
private class ButtonListener implements ActionListener{
public void actionPerformed(ActionEvent e){
try{
//Get the bet from the text field
float bet=Float.parseFloat(jtf.getText().trim());
//Send the bet to the server
toServer.writeFloat(bet);
toServer.flush();
//Get double the bet from the server
float doublebet=fromServer.readFloat();
//Display to the text area
jta.append("Bet is "+bet+"\n");
jta.append("Double the bet received from the server is "+doublebet+'\n');
catch(IOException ex){
System.err.println(ex);
}//end class BlackJackClient
import java.awt.*;
class Card{
Image image;
int value;
/*Constructor*/
public Card(Image image,int value){
this.image=image;
this.value=value;
/*Return the image associated with the card*/
public Image getImage(){
return image;
/*Return the current value of the card*/
public int getValue(){
return value;
/*Change the value of the card*/
public void setValue(int value){
this.value=value;
import java.awt.*;
//import java.applet.*;
import java.net.*;
import java.io.*;
class Deck{
Card[] cards=new Card[52];
int currCard;
public Deck(/*Blackjack myApplet,*/Image[] card_images){
//These are the (initial) values of all the cards
int[] values={11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10,11,2,3,4,5,6,7,8,9,10,10,10,10};
//Make all the cards, getting the images individually
for(int i=0;i<52;i++){
cards=new Card(card_images[i],values[i]);
//Shuffle the cards
shuffleCards();
public void shuffleCards(){
Card temp;
//loop through each card in the deck and swap it with some random card
for(int i=0;i<52;i++){
int rand=(int)(Math.random()*52);
temp=cards[51-i];//take the current card
cards[51-i]=cards[rand];//and swap it with some random card
cards[rand]=temp;
//now, reset the currentCard to deal
currCard=0;
public Card dealCard(){
Card card=cards[currCard];
currCard++;
return card;
public Card getCard(int i){
return cards[i];
class Hand{
private Card cards[]=new Card[10];
private int count;
private int value;
public void Hand(){
count=0;
value=0;
public Card[] getCards(){
return cards;
public int getCardCount(){
return count;
public void addCard(Card c){
cards[count]=c;
value+=cards[count].getValue();
if(c.getValue() == 11 && value > 21){//got and ace, so decrement the value of the hand by 10,if it would have been above 21
value-=10;
count++;
public int getValue(){
return value;
public boolean ace(){
int aceIndex=0;
boolean result=false;
for(int i=0;i<count;i++){
if (cards.getValue()==11){
value-=10;
return true;
return false;Why are you posting this yet again after I told you what the problem was 2 days ago:
http://forum.java.sun.com/thread.jspa?threadID=5147720
Nobody likes to repeat themselves, nor what others have already told you. -
Create problem when compiling the servlet
hi,
i got a problem when i compile a servlet
when i try to compile the servlet, it shows that it could
not found the classes like httpservlet, etc.
means the classes of the servlet
i am using the j2sdk1.4.1 edition,
i had include the javax.servlet.*; in the program
please tell me what can be the problem & especially any solution for thatthe javax.servlet package and it's sub packages (javax.servlet.http, javax.servlet.jsp, javax.servlet.jsp.tagext) are not included with the Standard Edition. These packages are part of the Enterprise Edition. Check out this link for download:
http://java.sun.com/j2ee/sdk_1.3/ -
Problem in compiling the sample applet
hello: im installed jdk 1.2.2 now i wanna folow the instruction written in the
PDF document.i did everything as it is but when i arrived to the step
"compiling the sample applet" i issue the command
" javac -g src/com/sun/javacard/samples/helloWorld/*.java"
but it doesn't work it give me a message that the command is not known.
i changed the directory where i issue the command from to c:\jdk1.1.6\bin
then he find it but i have an other problem is that he makes to error:
"package.javacard.framework not found in the import"
"import javacard.framework.*"
the second errer :
"superclass com.sun.javacard.samples.HelloWorld.applet of class com.sun.javacard.samples.HelloWorld.HelloWorld not found"
"public class HelloWorld extends applet"
i don't know why it doesn't work eventhought i folowed the steps as they are written .
can some one help me because i can"t pass to the next step if i couldn't compile those files.
thank you very muchSee http://forum.java.sun.com/thread.jsp?forum=7&thread=203737
-
Problem in compiling a program
i am using an API, and have a problem in executing a program which uses the API
the source code is here
import java.io.*;
import org.apache.lucene.document.*;
import org.apache.lucene.index.*;
import org.apache.lucene.analysis.*;
import org.apache.lucene.analysis.standard.*;
import java.util.*;
import java.io.IOException;
public class Indexer {
public static void main(String[] args) throws Exception {
if (args.length != 2) {
throw new Exception("Usage: java " + Indexer.class.getName()
+ " <index dir> <data dir>");
File indexDir = new File(args[0]);
File dataDir = new File(args[1]);
long start = new Date().getTime();
int numIndexed = index(indexDir, dataDir);
long end = new Date().getTime();
System.out.println("Indexing " + numIndexed + " files took "
+ (end - start) + " milliseconds");
// open an index and start file directory traversal
public static int index(File indexDir, File dataDir)
throws IOException {
if (!dataDir.exists() || !dataDir.isDirectory()) {
throw new IOException(dataDir
+ " does not exist or is not a directory");
IndexWriter writer = new IndexWriter(indexDir,
new StandardAnalyzer(), true);
writer.setUseCompoundFile(false);
indexDirectory(writer, dataDir);
int numIndexed = writer.docCount();
writer.optimize();
writer.close();
return numIndexed;
// recursive method that calls itself when it finds a directory
private static void indexDirectory(IndexWriter writer, File dir)
throws IOException {
File[] files = dir.listFiles();
for (int i = 0; i < files.length; i++) {
File f = files;
if (f.isDirectory()) {
indexDirectory(writer, f);
} else if (f.getName().endsWith(".txt")) {
indexFile(writer, f);
// method to actually index a file using Lucene
private static void indexFile(IndexWriter writer, File f)
throws IOException {
if (f.isHidden() || !f.exists() || !f.canRead()) {
return;
System.out.println("Indexing " + f.getCanonicalPath());
Document doc = new Document();
doc.add(Field.Text("contents", new FileReader(f)));
doc.add(Field.Keyword("filename", f.getCanonicalPath()));
writer.addDocument(doc);
and the errors are C:\Documents and Settings\Sumit\Desktop\db>javac Indexer.java
Indexer.java:60: cannot find symbol
symbol : method Text(java.lang.String,java.io.FileReader)
location: class org.apache.lucene.document.Field
doc.add(Field.Text("contents", new FileReader(f)));
^
Indexer.java:61: cannot find symbol
symbol : method Keyword(java.lang.String,java.lang.String)
location: class org.apache.lucene.document.Field
doc.add(Field.Keyword("filename", f.getCanonicalPath()));
^
2 errors
this program came with the API, but i dont know why it is not executing, ask me if you need any other file of API.ping.sumit wrote:
i am using an API, and have a problem in executing a program which uses the API and you will likely need to find a forum or other source which supports this API. Much luck. -
Problem with loading the program
Hi Guys,
I have a huge dilemma. I am trying to get re-acquainted with dvd studio pro and I need to fast for some freelance work I've had come up. I had a problem loading the the idvd onto my computer and I had to delete a bunch of the files to get it to work properly and for some reason I believe its affected dvd studio. Everytime I open it, it tells me it cannot find this file that I deleted a long time ago, and I don't even care about it, I just want to start a new project. But then the "can't find" bubble will not go away and I end up having to force quit the program. I have tried deleting the file that it is trying to open and I have tried re-installing the software to no avail. Please, any help would be very much appreciated. Thanks so much!This problem just showed up for me as well. I have an imac 27" with the latest Leopard software. I have used Soundtrack (NOT Pro) with this computer and software many times, so it is not an "old software" problem. It will simply no longer open. The only thing that has changed recently was a software update that I accepted (like most everyone else does) a few days ago.
I have deleted and reinstalled the software several times, along with Repair Permissions, etc., etc. Nothing working yet...this thing was really out of the blue. My next step is to use a "Final Cut Express Remover" program I found on the Internet that will remove all associated files (a complete uninstall) in case something I did not remove is causing the problem. I still suspect that software update, but don't know how to "undo" it, without losing other stuff via Time Machine. -
I keep getting an error message saying a problem has cause the program to work incorrectly.
Every time I try to connect to itunes, I get an error message saying a problem cause the program to work incorrectly. I am on a desktop and trying to download songs and a movie that I purchase on my ipad mini.
Hi EmilioB,
Thanks for visiting Apple Support Communities.
If iTunes is not working or quitting unexpectedly, see this link for troubleshooting steps that can help:
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
If the iTunes application is working, but you cannot connect to the iTunes Store, try the steps in this article:
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
All the best,
Jeremy -
Problem while compiling the Device Driver source code onSolaris 8 intel pla
Hello!
We are writing Device Driver for PCI (PMC) based HS serial
communication card on Solaris 8(intel edition).The Processor
used is Celeron/Pentium III.
We are facing following problems.
1) Kindly let us know the cc compiler options for xarch=isa.
2) Presently we have included following header files.
#include <sys/ddi.h>
#include <sys/sunddi.h>
3)We tried to compile our driver soure file (pmc.c) using
FORTE DEVELOPER 6 UPDATE 1 with the following command.
# cc -Xa -D_KERNEL -c pmc.c
4) The compiler is not able to reach to our source code. It prematurely fails
while compiling the system header files
5) The errors were reported during Preprocessor
compilation in /SYS/*.h header files.
cc: Warning: using -Xa, ignoring all other -X options
"/usr/include/iso/limits_iso.h", line 54: warning: macro redefined: SHRT_MIN
"/usr/include/iso/limits_iso.h", line 56: warning: macro redefined: USHRT_MAX
"/usr/include/iso/limits_iso.h", line 59: warning: macro redefined: UINT_MAX
"/usr/include/sys/vnode.h", line 486: syntax error before or at: rlim64_t
"/usr/include/sys/vnode.h", line 486: warning: undefined or missing type for: rlim64_t
"/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: cred_t
"/usr/include/sys/vnode.h", line 487: warning: undefined or missing type for: ssize_t
"/usr/include/vm/page.h", line 468: undefined or not a type: pgcnt_t
6)Kindly let us know :-
a) if any Environment variables to be set.
b) What all the system include headre files are required & in what sequence if any.
Expecting a early reply .
Can anybody help us.
Thanking you for your kind co-operation.
A.P.SINGH
INDIATry to use cc comiler from /opt/SUNWspro/bin/ like
/opt/SUNWspro/bin/cc -Xa -D_KERNEL -c pmc.c -
I have a problem in processing the program in background
Hi,
We have cloned the T'code V_V2 and added some additional functionality and when we try to run the program in background the error is blocking the process
This is because, say example i am tring to process the sales order in production systen through my program ,in that time some one may chage the sales document . in trhis case my program should not blocked it should check the block before processing and then it should proceed.
is there any FM to find the blocked sales order.
Regards,
VijayTry using the FM:
ENQUE_READ2
Passing the follwing values:
GNAME --> VBAK (Sales Order header table)
GARG --> The lock argument
(This will be a combination of client number anb Sales Order No.
Eg: '3001210000054' where the first three digit i,e 300 is the client No
and 1210000054 is the sales order no.)
Regards,
Firoz.
Maybe you are looking for
-
Is there a way to copy all my PDfs in ibooks on my iPad?
Because I'm still sorting out an issue with ibooks on the iMac renaming files so they do not match the names on my iPad, I am wondering if there is a way to copy all the pdfs I have in ibooks on my ipad (without doing each one, one at a time) so I ca
-
HT2623 how can I change my icloud email address?
I have not been able to change my icloud email address and would like to do so. I know before this was not an option. Has it changed?
-
Keyboard shortcuts for IC webclient CRM5.0
Hi, following the procedure on help.sap, i am trying to active the keyboard shortcuts for IC Webclient screen. here are the steps i followed, but i could not see any shortcuts working.... what am i missing? http://help.sap.com/saphelp_crm50/helpdata/
-
Database configuring problem in setup of managed systems in SMD
Hello, i'm doing the setup of a CRM 5.0 in SMD Abap+Java and the setup results returns following: "Database configuration problem" with the exception: java.lang.NullPointerException at com.sap.smd.server.manager.SMDPluginProperties.setProperty(
-
How do I disable save session?
On earlier versions of FF, there was always a prompt that asked if you wanted to save your browsing session for next time. Now, I am not given the option, and Firefox (v4) is saving my pages by default. In Options/General/Startup, it is set to show h