Trouble compiling a library
Hi folks, I'm experiencing a trouble using forms & reports on two different platforms: Win XP Prof. SP2 for development and SuSe Ent. 9 Linux for deployment.
I've inherited from another person an application with some forms, some reports and two libraries (one attached to the forms annd the other attacched to the reports).
I've modified a function in the library attacched to the reports. It compiles ok on XP.
Moved the library (.pll file) to Suse I tried to compile with:
#!/bin/sh
PATH_SAVE=$PWD
ORACLE_HOME=/opt/oracle/app/oracle/product/frs10.1.2
export ORACLE_HOME
FORMS_PATH=/opt/csa/sw/webapp/FORMS:/opt/csa/sw/webapp/CSA_LIBS
export FORMS_PATH
REPORTS_PATH=/opt/csa/sw/webapp/REPORTS:/opt/csa/sw/webapp/CSA_LIBS
export REPORTS_PATH
TNS_ADMIN=$ORACLE_HOME/network/admin
export TNS_ADMIN
TWO_TASK=csa_v30/csa_v30@csa5i009
export TWO_TASK
ORACLE_SID=csa5i009
export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386/server:$ORACLE_HOME/jdk/jre/lib/i386/native_threads:$ORACLE_HOME/jdk/jre/lib/i386:$ORACLE_HOME/lib
export LD_LIBRARY_PATH
ORACLE_TERM=vt220
export ORACLE_TERM
# COMPILE LIBRARIES
cd /opt/csa/sw/webapp/CSA_LIBS
$ORACLE_HOME/bin/frmcmp_batch module=LIB_CSA_FORMS.pll userid=csa_v30/csa_v30@csa5i009 module_type=LIBRARY compile_all=YES logon=YES batch=YES
# COMPILE FORMS and MENUS
cd /opt/csa/sw/webapp/FORMS
for file in *.fmb
do
$ORACLE_HOME/bin/frmcmp_batch module=$file userid=csa_v30/csa_v30@csa5i009 module_type=FORM compile_all=YES logon=YES batch=YES
done
for file in *.mmb
do
$ORACLE_HOME/bin/frmcmp_batch module=$file userid=csa_v30/csa_v30@csa5i009 module_type=MENU compile_all=YES logon=YES batch=YES
done
cd $PATH_SAVE
unset PATH_SAVE
and obtained:
PL/SQL ERROR 201 at line 58, coloumn 5
identifier 'SRW.SET_FOREGROUND_FILL COLOR' must be declared
FRM-30312: Failed to compile the library
Some useful data:
Forms [32 Bit] Version 10.1.2.0.2 (Production)
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.4.2 (Production)
Oracle Procedure Builder V10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.0.2 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.4.0 Production
And:
Report Builder 10.1.2.0.2
ORACLE Server Release 10.1.0.4.2
Oracle Procedure Builder 10.1.2.0.2
Oracle ORACLE PL/SQL V10.1.0.4.2 - Production
Oracle CORE 10.1.0.4.0 Production
Oracle Tools Integration Services 10.1.2.0.2
Oracle Tools Common Area 10.1.2.0.2
Oracle Toolkit 2 for Windows 32-bit platforms 10.1.2.0.2
Resource Object Store 10.1.2.0.2
Oracle Help 10.1.2.0.2
Oracle Sqlmgr 10.1.2.0.2
Oracle Query Builder 10.1.2.0.2 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle ZRC 10.1.2.0.2
Oracle XML Developers Kit 10.1.0.4.2 - Production
Oracle Virtual Graphics System 10.1.2.0.2
Oracle Image 10.1.2.0.2
Oracle Multimedia Widget 10.1.2.0.2
Oracle Tools GUI Utilities 10.1.2.0.2
Any advice will be welcome
Thanx
Rob
This package currently compiles fine with the latest gcc (at least last time I checked), but still I'm having trouble making a package for it because I don't know how to get it to install to a custom location like the $startdir/pkg directory.
Similar Messages
-
Troubles compiling a library in Reports10g connected to Oracle10g server
I have a very simple library sys_date_2.pld:
FUNCTION Sys_Date RETURN date IS
BEGIN
return k_std.sys_date;
END;
I connect to database Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi and try to convert this file to pll or plx. Reports10g terminates with message:
rwbuilder.exe has generated errors and will be closed...
Unfortunally I cannot see log files from Event Viewer because security policy.
When I connect to Oracle 9.2 database server, the library compiles successfully
k_std.sys_date is a package function returning sysdate without any errors
What's up?
Thanks in advance!!!Hello ,
Please check below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cc39d8cb-bc64-48e6-8368-24886481dd4f/sql-server-cluster-sql-server-resource-not-coming-online?forum=sqlsetupandupgrade
http://blogs.technet.com/b/taraj/archive/2009/01/07/could-not-find-any-ip-address-that-this-sql-server-instance-depends-upon.aspx
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
A little cross-post, please help
Trouble compiling a library
Thx
RobPeter Chr. Hansen (guest) wrote:
: I'm working on a project of porting our Economy Application
from
: a scoopen server to a linux server but when I try to ling the
: shared oracle library libclntsh.so (we have copied it to a file
: called Sql.so) I get the following error:
: /oase5.0/Shared/Sql.so: undefined reference to `slpmprodstab'
: Where is this defined??
: There is no problem when I compile the demos included whith
: oracle
: Yours,
: Peter Chr. Hansen
Try this link line as posted earlier:
cc -o <executable> <filename>.c \
-L$ORACLE_HOME/lib/ \
-L$ORACLE_HOME/rdbms/lib \
$ORACLE_HOME/lib/scorept.o \
-I$ORACLE_HOME/rdbms/public \
-lnetv2 -lnttcp -lnetwork -lncr \
-lvsn -lcommon -lgeneric \
-lcore4 -lnlsrtl3 -lepc -lsql \
-lclient -lclntsh
Maturi
null -
Error getting whille compileing the Library file
Hi,
I have a problem that when ever i am trying to compile my Library to generate the .PLX file it showing compilation error to me.
Like "FND_ATTACHMENT_UTIL_PKG.get_atchmt_exists" here its stucking.
So kindely help me to understand this point.
With regards"FRM 040039 Cannot attach Library APPCORE while opening th form {quote}Clearly, you are working with the Oracle Enterprise Business Suite (EBS) as the APPCORE library is an EBS library. Are you trying to configure a local installation of the EBS or is this on a server? For EBS development, you need to have the library files (.pll and .plx) included in your FORMS_PATH variable. These files are typically located in the AU_TOP (\AU\Resources) directory on the Application Server (AS). The only person that should be compiling these library files is your AS Administrator and they should only be compiled on the AS, not your workstation. You should only be using the compiled version supplied by your AS Admin.
If the library file is not compiling correctly, it is because your Forms Builder is unable to find all of the required referenced items in the Library. This would suggest that your Forms Builder is not configured correctly. As I stated above, these library files should only be compiled on the AS, never on a developer workstation.
If you are still having trouble with this issue, I strongly suggest you post your question in the <a href="General EBS Discussion">EBS General Discussion</A> forum. This forum is for general Oracle Forms questions. If you have a general Forms question, by all means, ask it here! ;-)
Hope this helps,
Craig B-)
+If someone's response is helpful or correct, please mark it accordingly.+ -
Trouble Compiling my Email-client
Hi
I have written this email -client, but have some trouble compiling it !
Then I try to compile it the following errors:
MailClient.java:350: <identifier> expected
public syncronize void mails(String t){
^
MailClient.java:727: ';' expected
private class myWindowListener extends WindowAdapter{
^
MailClient.java:747: '}' expected
3 errors.
What do I need to change to correct these errors ?
I hope that there is somebody out there who can help me get my program to work.
Thanks in advance.
Sincrely Yours
Fred
import java.io.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
public class MailClient extends JFrame implements ActionListener{
private Sendman mySendman;
private Letterman myLetterman;
public Writer myWrite;
public Reader myReader;
public Composer myComposer;
private Setup mySetup;
public Addressbook myAdressbook;
private FixTask myFixTask;
private Filter myFilter;
private Info myInfo;
public Vector mailIndexVector = new Vector();
public Vector filterIndexVector = new Vector();
public Vector folderVector = new Vector();
private JPanel tArea, trae, icon, tField;
private JTextArea ta;
private JScrollPane view, treeScroll;
private JTree tree;
public JTextField tf;
private JSplitPane split;
private Dimension Size;
private MailClient myMailClient;
private String mailBody, subject, from;
public boolean fromOutbox = false;
public boolean viewSource = false;
public static void main (String[] args) {
MailClient myMailClient = new MailClient();
public MailClient() {
super("Mail-Client");
ImageIcon linux = new ImageIcon("linux.gif");
this.setIconImage(linux.getImage());
icon = new JPanel();
icon.setLayout(new FlowLayout(FlowLayout.LEFT));
ImageIcon neu = new ImageIcon("getmail.gif");
JButton neueMails = new JButton(neu);
newMails.setActionCommand("Getting new Mails");
newMails.addActionListener(this);
newMails.setBorderPainted(false);
newMails.setToolTipText("Getting new Mails");
ImageIcon cr = new ImageIcon("creator.gif");
JButton creator = new JButton(cr);
creator.setActionCommand("Creator open");
creator.addActionListener(this);
creator.setBorderPainted(false);
creator.setToolTipText("Creator open");
JButton rep = new JButton(new ImageIcon("reply.gif"));
rep.setActionCommand("rep");
rep.addActionListener(this);
rep.setBorderPainted(false);
rep.setToolTipText("Reply");
JButton fwd = new JButton(new ImageIcon("fwd.gif"));
fwd.setActionCommand("fwd");
fwd.addActionListener(this);
fwd.setBorderPainted(false);
fwd.setToolTipText("Forward");
JButton ein = new JButton(new ImageIcon("settings.gif"));
ein.setActionCommand("settings open");
ein.addActionListener(this);
ein.setBorderPainted(false);
ein.setToolTipText("Setting open");
JButton adr = new JButton(new ImageIcon("adressbook.gif"));
adr.setActionCommand("adr");
adr.addActionListener(this);
adr.setBorderPainted(false);
adr.setToolTipText("Addressbook");
JButton lo = new JButton(new ImageIcon("trash.gif"));
lo.setActionCommand("trash");
lo.addActionListener(this);
lo.setBorderPainted(false);
lo.setToolTipText("trash");
JButton in = new JButton(new ImageIcon("info.gif"));
in.setActionCommand("Information");
in.addActionListener(this);
in.setBorderPainted(false);
in.setToolTipText("Information");
icon.add(newMails);
icon.add(creator);
icon.add(rep);
icon.add(fwd);
icon.add(set);
icon.add(adr);
icon.add(lo);
icon.add(in);
Vector h1 = myLeser.lese("Summary.4on");
for(int i=0; i<h1.size(); i+=7){
String id = h1.elementAt(i).toString();
String fo = h1.elementAt(i+1).toString();
String su = h1.elementAt(i+2).toString();
String fr = h1.elementAt(i+3).toString();
String to = h1.elementAt(i+4).toString();
String da = h1.elementAt(i+5).toString();
String re = h1.elementAt(i+6).toString();
MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
mailIndexVector.addElement(index);
Vector h2 = myReader.read("Filter.4on");
for(int j=0; j<h2.size(); j+=3){
String fo = h2.elementAt(j).toString();
String from = h2.elementAt(j+1).toString();
String te = h2.elementAt(j+2).toString();
FilterIndex index = new FilterIndex(fo, from, te);
filterIndexVector.addElement(index);
folderVector = myReader.read("Folder.4on");
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox")){
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
baum.add("Center", treeScroll);
MainMenu menuBar = new MainMenu(this, this);
setJMenuBar(menuBar);
setVisible(true);
public void mailsFetcher() {
myLetterman = new Letterman(this, mySetup);
myLetterman.start();
public void treeNewSign(){
trae.remove(treeScroll);
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox"))
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
trae.add("Center", treeScroll);
trae.repaint();
setVisible(true);
public void menuNewSign(){
setJMenuBar(new MainMenu(this, this));
setVisible(true);
public String fromFilter (String t){
String myFrom = "";
int start, end;
int a = t.indexOf("From:");
if (a != -1){
start = a + 6;
ende = t.indexOf("\n",start);
myFrom = t.substring(start,end);
return myFrom;
public String toFilter (String t){
String myTo = "";
int start, e1, e2, end;
int a = t.indexOf("To:");
if (a != -1){
start = a + 4;
end = t.indexOf("\n",start);
myTo = t.substring(start,end);
e1 = end + 1;
if(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" "))
e1++;
e2 = t.indexOf("\n",e1);
myTo += " " + t.substring(e1,e2);
e1 = e2 + 1;
return myTo;
public String dateFilter (String t){
String myDate = "";
int start, end;
int a = t.indexOf("Date:");
if (a != -1){
start = a + 6;
end = t.indexOf("\n",start);
myDate = t.substring(start,end);
return myDate;
public String subjectFilter (String t){
String mySubject = "";
int start, end;
int a = t.indexOf("Subject:");
if (a != -1){
start = a + 9;
end = t.indexOf("\n",start);
mySubject = t.substring(start,end);
return mySubject;
public String mailFilter (String t){
String myMail = "";
int start = 0, end = t.length();
start = t.indexOf("\n\n") + 2;
if (start != 1){
int a = t.indexOf("\n\n" ,start);
if (a != -1){
if (t.indexOf(".",a+2) == a+2)
if (t.indexOf("\n",a+3) == a+3)
start = a;
myMail = t.substring(start,end);
return myMail;
public void mailsRemark(String file){
String mail = "", t = "";
Vector mailVector = myReader.read(file);
for (int i=0; i<mailVector.size(); i++)
t += (String)mailVector.elementAt(i) + "\n";
from = fromFilter(t);
subject = subjectFilter(t);
mailBody = mailFilter(t);
mail += "Subject: " + subject + "\n";
mail += "Date: " + dateFilter(t) + "\n";
mail += "From: " + from + "\n";
mail += "To: " + toFilter(t) + "\n";
mail += "\n" + mailBody;
if(viewSource == true)
ta.setText(t);
else
ta.setText(mail);
public syncronize void mails(String t){
Status myStatus = new Status(this,t);
myStatus.start();
public void delete(){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
if(node.isLeaf()){
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailIndexVector.removeElement(index);
int count = 0;
for(int j=0; j<mailIndexVector.size(); j++){
MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
String id = index1.mailId;
if(id.equals(index.mailId))
count++;
if(count == 0){
File home = new File(".");
String mailsRemark = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
treeNewSign();
menuNewSign();
else{
String t = (String)nodeInfo;
boolean toDelete = false;
for (int i=0; i<folderVector.size(); i++){
if(folderVector.elementAt(i).equals(t)){
folderVector.removeElement(t);
konnteLoeschen = true;
if(toDelete == false){
message("This folder can not be deleted!");
treeNewSign();
else
message("Folder is not Empty! Please delete Your mails.");
else
message("No Mails where selected to be deleted!");
public void forward(){
if(from != null){
creatorOeffnen();
myCreator.tfSb.setText("Fwd to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void reply(){
if(from != null){
creatorOeffnen();
myCreator.tfTo.setText(from);
myCreator.tfSb.setText("Reply to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void end(){
String h = "";
for (int i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
h += index.mailId + "\n";
h += index.folder + "\n";
h += index.subject + "\n";
h += index.from + "\n";
h += index.to + "\n";
h += index.date + "\n";
h += index.read + "\n";
myWriter.writer(h,"Summary.4on");
String w = "";
for (int l=0; l<filterIndexVector.size(); l++){
FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
w += index.folder + "\n";
w += index.from + "\n";
w += index.text + "\n";
myWriter.write(w,"Filter.4on");
String k = "";
for(int j=0; j<folderVector.size(); j++)
k += folderVector.elementAt(j).toString() + "\n";
myWriter.writer(k,"Folder.4on");
String t = "";
for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
AddressIndex aindex =
(AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
t += aindex.alias + "\n";
t += aindex.email + "\n";
myWriter.write(t,"Address.4on");
setVisible(false);
dispose();
System.exit(0);
public void filterOpen(){
boolean test = false;
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof String){
myFilter.folder = (String)nodeInfo;
for(int i=0; i<filterIndexVector.size(); i++){
FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
if(h.folder.equals(nodeInfo)){
myFilter.index = h;
test = true;
if(h.from.equals("")){
myFilter.box1 = false;
myFilter.fTf.setText("");
myFilter.fBox.setSelected(false);
myFilter.fTf.setEditable(false);
else{
myFilter.box1 = true;
myFilter.fTf.setText(h.from);
myFilter.fBox.setSelected(true);
myFilter.fTf.setEditable(true);
if(h.text.equals("")){
myFilter.box2 = false;
myFilter.tTf.setText("");
myFilter.tBox.setSelected(false);
myFilter.tTf.setEditable(false);
else{
myFilter.box2 = true;
myFilter.tTf.setText(h.text);
myFilter.tBox.setSelected(true);
myFilter.tTf.setEditable(true);
break;
myFilter.setVisible(true);
myFilter.fBox.requestFocus();
else
meldung("No selection");
public void sendOutbox(){
fromOutbox = true;
int i;
Block1:
for(i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
if(index.folder.equals("Outbox")){
Vector mailVector = myReader.read(index.mailId);
Block2:
for(int j=0; j<mailVector.size(); j++){
String m = (String)mailVector.elementAt(j);
if(m.indexOf("Subject:") != -1){
for(int k=0; k<=j+1; k++){
mailVector.removeElementAt(0);
break Block2;
Vector toVector = new Vector();
int tEnd = 1;
String line = "";
String t = index.to;
while (tEnd != -1){
tEnd = t.indexOf(", ");
if (tEnd == -1)
line = t;
else
line = t.substring(0,tEnd);
t = t.substring(tEnd + 1);
toVector.addElement(line);
File home = new File(".");
String mailsVerzeichnis = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
mySendman = new Sendman(mailVector, toVector, index.subject,
ailsAnzeig mySetup, this);
mySendman.start();
mailIndexVector.removeElement(index);
break Block1;
if(i == mailIndexVector.size())
fromOutbox = false;
treeNewSign();
public void partion(String cmd){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
index.folder = cmd.substring(13).toString();
treeNewSign();
else
meldung("No mails to partion!");
public void SetupOpen(){
if (mySetup.savePassword == false)
mySetup.pTf.setText("");
mySetup.setVisible(true);
mySetup.aTf.requestFocus();
public void addressbookOpen(){
myAddressBook.setVisible(true);
myAdressBook.tree.requestFocus();
public void creatorOpen(){
myCreator.setVisible(true);
myCreator.tfTo.requestFocus();
public void actionPerformed(ActionEvent event){
Object obj = event.getSource();
if (obj instanceof JMenuItem){
String cmd = event.getActionCommand();
if (cmd.equals("New fetched")){
mailsfetch();
else if (cmd.equals("Written new mails")) {
creatorOpen();
else if (cmd.equals("Reply")) {
reply();
else if (cmd.equals("Forward")) {
forward();
else if (cmd.equals("Outbox")) {
sendOutbox();
else if (cmd.equals("Delete")) {
delete();
else if ((cmd.length() >13) &&
(cmd.substring(0,13).equals("Sorting-"))){
sorting(cmd);
else if (cmd.equals("Using Addressbook")){
addressbookOpen();
else if (cmd.equals("Filter working")){
filterOpen();
else if (cmd.equals("New Order")){
myFixTask.tf.setText("");
myFixTask.setVisible(true);
myFixTask.tf.requestFocus();
else if (cmd.equals("delete")){
delete();
else if ((cmd.length() >7) &&
(cmd.substring(0,7).equals("nobody"))){
if(viewSource == false){
viewSource = true;
menuNewSign();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else{
viewSource = false;
menuNeuZeichnen();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else if (cmd.equals("Setup")){
SetupOpen();
else if (obj instanceof JButton){
String cmd = event.getActionCommand();
if (cmd.equals("aga")){
mailsHolen();
else if (cmd.equals("Creator Open")){
creatorOpem();
else if(cmd.equals("rep")){
reply();
else if(cmd.equals("fwd")){
forward();
else if(cmd.equals("Setup Open")){
SetupOpen();
else if(cmd.equals("adr")){
addressbookOpen();
else if(cmd.equals("delete")){
delete();
else if(cmd.equals("Information")){
myInfo.setVisible(true);
myInfo.b.requestFocus();
private class myWindowListener extends WindowAdapter{
public void windowClosing(WindowEvent event){
end();
private class myTreeSelectionListener implements TreeSelectionListener{
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsAnzeigen(index.mailId);
index.read = "Yes";Some suggestions:
1. as the others stated- you should really post specific questions rather than 1 huge ugly class!
2. use code tags
3. get a decent IDE- it would take about 1 minute to then see where the error is-
4. the rrors were just misspelled 'synchronized' and missing argument ','
5. Try not to make such huge classes!!- Try to follow certain coding "patterns"- like MVC- and not stick everything in 1 class- separate the functionality- it makes coding much easier!
here is fixed code (at least gets rid of those last errors):
import java.io.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.event.*;
public class MailClient extends JFrame implements ActionListener{
private Sendman mySendman;
private Letterman myLetterman;
public Writer myWrite;
public Reader myReader;
public Composer myComposer;
private Setup mySetup;
public Addressbook myAdressbook;
private FixTask myFixTask;
private Filter myFilter;
private Info myInfo;
public Vector mailIndexVector = new Vector();
public Vector filterIndexVector = new Vector();
public Vector folderVector = new Vector();
private JPanel tArea, trae, icon, tField;
private JTextArea ta;
private JScrollPane view, treeScroll;
private JTree tree;
public JTextField tf;
private JSplitPane split;
private Dimension Size;
private MailClient myMailClient;
private String mailBody, subject, from;
public boolean fromOutbox = false;
public boolean viewSource = false;
public static void main (String[] args) {
MailClient myMailClient = new MailClient();
public MailClient() {
super("Mail-Client");
ImageIcon linux = new ImageIcon("linux.gif");
this.setIconImage(linux.getImage());
icon = new JPanel();
icon.setLayout(new FlowLayout(FlowLayout.LEFT));
ImageIcon neu = new ImageIcon("getmail.gif");
JButton neueMails = new JButton(neu);
newMails.setActionCommand("Getting new Mails");
newMails.addActionListener(this);
newMails.setBorderPainted(false);
newMails.setToolTipText("Getting new Mails");
ImageIcon cr = new ImageIcon("creator.gif");
JButton creator = new JButton(cr);
creator.setActionCommand("Creator open");
creator.addActionListener(this);
creator.setBorderPainted(false);
creator.setToolTipText("Creator open");
JButton rep = new JButton(new ImageIcon("reply.gif"));
rep.setActionCommand("rep");
rep.addActionListener(this);
rep.setBorderPainted(false);
rep.setToolTipText("Reply");
JButton fwd = new JButton(new ImageIcon("fwd.gif"));
fwd.setActionCommand("fwd");
fwd.addActionListener(this);
fwd.setBorderPainted(false);
fwd.setToolTipText("Forward");
JButton ein = new JButton(new ImageIcon("settings.gif"));
ein.setActionCommand("settings open");
ein.addActionListener(this);
ein.setBorderPainted(false);
ein.setToolTipText("Setting open");
JButton adr = new JButton(new ImageIcon("adressbook.gif"));
adr.setActionCommand("adr");
adr.addActionListener(this);
adr.setBorderPainted(false);
adr.setToolTipText("Addressbook");
JButton lo = new JButton(new ImageIcon("trash.gif"));
lo.setActionCommand("trash");
lo.addActionListener(this);
lo.setBorderPainted(false);
lo.setToolTipText("trash");
JButton in = new JButton(new ImageIcon("info.gif"));
in.setActionCommand("Information");
in.addActionListener(this);
in.setBorderPainted(false);
in.setToolTipText("Information");
icon.add(newMails);
icon.add(creator);
icon.add(rep);
icon.add(fwd);
icon.add(set);
icon.add(adr);
icon.add(lo);
icon.add(in);
Vector h1 = myLeser.lese("Summary.4on");
for(int i=0; i<h1.size(); i+=7){
String id = h1.elementAt(i).toString();
String fo = h1.elementAt(i+1).toString();
String su = h1.elementAt(i+2).toString();
String fr = h1.elementAt(i+3).toString();
String to = h1.elementAt(i+4).toString();
String da = h1.elementAt(i+5).toString();
String re = h1.elementAt(i+6).toString();
MailIndex index = new MailIndex(id, fo, su, fr, to, da, re);
mailIndexVector.addElement(index);
Vector h2 = myReader.read("Filter.4on");
for(int j=0; j<h2.size(); j+=3){
String fo = h2.elementAt(j).toString();
String from = h2.elementAt(j+1).toString();
String te = h2.elementAt(j+2).toString();
FilterIndex index = new FilterIndex(fo, from, te);
filterIndexVector.addElement(index);
folderVector = myReader.read("Folder.4on");
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox")){
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
treeScroll.setFont(new Font("Monospaced",Font.PLAIN,6));
baum.add("Center", treeScroll);
MainMenu menuBar = new MainMenu(this, this);
setJMenuBar(menuBar);
setVisible(true);
public void mailsFetcher() {
myLetterman = new Letterman(this, mySetup);
myLetterman.start();
public void treeNewSign(){
trae.remove(treeScroll);
DefaultMutableTreeNode top, inbox, outbox, sentbox, trash;
top = new DefaultMutableTreeNode("mails");
top.add(inbox = new DefaultMutableTreeNode("Inbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Inbox"))
inbox.add(new DefaultMutableTreeNode(m));
top.add(outbox = new DefaultMutableTreeNode("Outbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Outbox"))
outbox.add(new DefaultMutableTreeNode(m));
top.add(sentbox = new DefaultMutableTreeNode("Sentbox"));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals("Sentbox"))
sentbox.add(new DefaultMutableTreeNode(m));
for(int j=0; j<folderVector.size(); j++){
top.add(trash =
new DefaultMutableTreeNode(folderVector.elementAt(j).toString()));
for(int i=0; i<mailIndexVector.size(); i++){
MailIndex m = (MailIndex)mailIndexVector.elementAt(i);
if (m.folder.equals(folderVector.elementAt(j).toString()))
trash.add(new DefaultMutableTreeNode(m));
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode
(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new myTreeSelectionListener());
treeScroll = new JScrollPane(tree);
trae.add("Center", treeScroll);
trae.repaint();
setVisible(true);
public void menuNewSign(){
setJMenuBar(new MainMenu(this, this));
setVisible(true);
public String fromFilter (String t){
String myFrom = "";
int start, end;
int a = t.indexOf("From:");
if (a != -1){
start = a + 6;
ende = t.indexOf("\n",start);
myFrom = t.substring(start,end);
return myFrom;
public String toFilter (String t){
String myTo = "";
int start, e1, e2, end;
int a = t.indexOf("To:");
if (a != -1){
start = a + 4;
end = t.indexOf("\n",start);
myTo = t.substring(start,end);
e1 = end + 1;
if(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" ")){
while(t.substring(e1,e1+1).equals(" "))
e1++;
e2 = t.indexOf("\n",e1);
myTo += " " + t.substring(e1,e2);
e1 = e2 + 1;
return myTo;
public String dateFilter (String t){
String myDate = "";
int start, end;
int a = t.indexOf("Date:");
if (a != -1){
start = a + 6;
end = t.indexOf("\n",start);
myDate = t.substring(start,end);
return myDate;
public String subjectFilter (String t){
String mySubject = "";
int start, end;
int a = t.indexOf("Subject:");
if (a != -1){
start = a + 9;
end = t.indexOf("\n",start);
mySubject = t.substring(start,end);
return mySubject;
public String mailFilter (String t){
String myMail = "";
int start = 0, end = t.length();
start = t.indexOf("\n\n") + 2;
if (start != 1){
int a = t.indexOf("\n\n" ,start);
if (a != -1){
if (t.indexOf(".",a+2) == a+2)
if (t.indexOf("\n",a+3) == a+3)
start = a;
myMail = t.substring(start,end);
return myMail;
public void mailsRemark(String file){
String mail = "", t = "";
Vector mailVector = myReader.read(file);
for (int i=0; i<mailVector.size(); i++)
t += (String)mailVector.elementAt(i) + "\n";
from = fromFilter(t);
subject = subjectFilter(t);
mailBody = mailFilter(t);
mail += "Subject: " + subject + "\n";
mail += "Date: " + dateFilter(t) + "\n";
mail += "From: " + from + "\n";
mail += "To: " + toFilter(t) + "\n";
mail += "\n" + mailBody;
if(viewSource == true)
ta.setText(t);
else
ta.setText(mail);
public synchronized void mails(String t){
Status myStatus = new Status(this,t);
myStatus.start();
public void delete(){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
if(node.isLeaf()){
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailIndexVector.removeElement(index);
int count = 0;
for(int j=0; j<mailIndexVector.size(); j++){
MailIndex index1 = (MailIndex)mailIndexVector.elementAt(j);
String id = index1.mailId;
if(id.equals(index.mailId))
count++;
if(count == 0){
File home = new File(".");
String mailsRemark = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
treeNewSign();
menuNewSign();
else{
String t = (String)nodeInfo;
boolean toDelete = false;
for (int i=0; i<folderVector.size(); i++){
if(folderVector.elementAt(i).equals(t)){
folderVector.removeElement(t);
konnteLoeschen = true;
if(toDelete == false){
message("This folder can not be deleted!");
treeNewSign();
else
message("Folder is not Empty! Please delete Your mails.");
else
message("No Mails where selected to be deleted!");
public void forward(){
if(from != null){
creatorOeffnen();
myCreator.tfSb.setText("Fwd to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void reply(){
if(from != null){
creatorOeffnen();
myCreator.tfTo.setText(from);
myCreator.tfSb.setText("Reply to: " + subject);
myCreator.ta.setText("<" + from + ">" + " wrote:\n\n" + mailBody +
"\n\n>\n>\n\n");
public void end(){
String h = "";
for (int i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
h += index.mailId + "\n";
h += index.folder + "\n";
h += index.subject + "\n";
h += index.from + "\n";
h += index.to + "\n";
h += index.date + "\n";
h += index.read + "\n";
myWriter.writer(h,"Summary.4on");
String w = "";
for (int l=0; l<filterIndexVector.size(); l++){
FilterIndex index = (FilterIndex)filterIndexVector.elementAt(l);
w += index.folder + "\n";
w += index.from + "\n";
w += index.text + "\n";
myWriter.write(w,"Filter.4on");
String k = "";
for(int j=0; j<folderVector.size(); j++)
k += folderVector.elementAt(j).toString() + "\n";
myWriter.writer(k,"Folder.4on");
String t = "";
for (int l=0; l<myAddressBook.addressIndexVector.size(); l++){
AddressIndex aindex =
(AddressIndex)myAdressBook.adressIndexVector.elementAt(l);
t += aindex.alias + "\n";
t += aindex.email + "\n";
myWriter.write(t,"Address.4on");
setVisible(false);
dispose();
System.exit(0);
public void filterOpen(){
boolean test = false;
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof String){
myFilter.folder = (String)nodeInfo;
for(int i=0; i<filterIndexVector.size(); i++){
FilterIndex h = (FilterIndex)filterIndexVector.elementAt(i);
if(h.folder.equals(nodeInfo)){
myFilter.index = h;
test = true;
if(h.from.equals("")){
myFilter.box1 = false;
myFilter.fTf.setText("");
myFilter.fBox.setSelected(false);
myFilter.fTf.setEditable(false);
else{
myFilter.box1 = true;
myFilter.fTf.setText(h.from);
myFilter.fBox.setSelected(true);
myFilter.fTf.setEditable(true);
if(h.text.equals("")){
myFilter.box2 = false;
myFilter.tTf.setText("");
myFilter.tBox.setSelected(false);
myFilter.tTf.setEditable(false);
else{
myFilter.box2 = true;
myFilter.tTf.setText(h.text);
myFilter.tBox.setSelected(true);
myFilter.tTf.setEditable(true);
break;
myFilter.setVisible(true);
myFilter.fBox.requestFocus();
else
meldung("No selection");
public void sendOutbox(){
fromOutbox = true;
int i;
Block1:
for(i=0; i<mailIndexVector.size(); i++){
MailIndex index = (MailIndex)mailIndexVector.elementAt(i);
if(index.folder.equals("Outbox")){
Vector mailVector = myReader.read(index.mailId);
Block2:
for(int j=0; j<mailVector.size(); j++){
String m = (String)mailVector.elementAt(j);
if(m.indexOf("Subject:") != -1){
for(int k=0; k<=j+1; k++){
mailVector.removeElementAt(0);
break Block2;
Vector toVector = new Vector();
int tEnd = 1;
String line = "";
String t = index.to;
while (tEnd != -1){
tEnd = t.indexOf(", ");
if (tEnd == -1)
line = t;
else
line = t.substring(0,tEnd);
t = t.substring(tEnd + 1);
toVector.addElement(line);
File home = new File(".");
String mailsVerzeichnis = "." + home.separator + "data";
File datei = new File(mailsRemark, index.mailId);
datei.delete();
mySendman = new Sendman(mailVector, toVector, index.subject,ailsAnzeig, mySetup, this);
mySendman.start();
mailIndexVector.removeElement(index);
break Block1;
if(i == mailIndexVector.size())
fromOutbox = false;
treeNewSign();
public void partion(String cmd){
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
index.folder = cmd.substring(13).toString();
treeNewSign();
else
meldung("No mails to partion!");
public void SetupOpen(){
if (mySetup.savePassword == false)
mySetup.pTf.setText("");
mySetup.setVisible(true);
mySetup.aTf.requestFocus();
public void addressbookOpen(){
myAddressBook.setVisible(true);
myAdressBook.tree.requestFocus();
public void creatorOpen(){
myCreator.setVisible(true);
myCreator.tfTo.requestFocus();
public void actionPerformed(ActionEvent event){
Object obj = event.getSource();
if (obj instanceof JMenuItem){
String cmd = event.getActionCommand();
if (cmd.equals("New fetched")){
mailsfetch();
else if (cmd.equals("Written new mails")) {
creatorOpen();
else if (cmd.equals("Reply")) {
reply();
else if (cmd.equals("Forward")) {
forward();
else if (cmd.equals("Outbox")) {
sendOutbox();
else if (cmd.equals("Delete")) {
delete();
else if ((cmd.length() >13) &&
(cmd.substring(0,13).equals("Sorting-"))){
sorting(cmd);
else if (cmd.equals("Using Addressbook")){
addressbookOpen();
else if (cmd.equals("Filter working")){
filterOpen();
else if (cmd.equals("New Order")){
myFixTask.tf.setText("");
myFixTask.setVisible(true);
myFixTask.tf.requestFocus();
else if (cmd.equals("delete")){
delete();
else if ((cmd.length() >7) &&
(cmd.substring(0,7).equals("nobody"))){
if(viewSource == false){
viewSource = true;
menuNewSign();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else{
viewSource = false;
menuNeuZeichnen();
if(tree.getLastSelectedPathComponent() != null){
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsRemark(index.mailId);
else if (cmd.equals("Setup")){
SetupOpen();
else if (obj instanceof JButton){
String cmd = event.getActionCommand();
if (cmd.equals("aga")){
mailsHolen();
else if (cmd.equals("Creator Open")){
creatorOpem();
else if(cmd.equals("rep")){
reply();
else if(cmd.equals("fwd")){
forward();
else if(cmd.equals("Setup Open")){
SetupOpen();
else if(cmd.equals("adr")){
addressbookOpen();
else if(cmd.equals("delete")){
delete();
else if(cmd.equals("Information")){
myInfo.setVisible(true);
myInfo.b.requestFocus();
private class myWindowListener extends WindowAdapter{
public void windowClosing(WindowEvent event){
end();
private class myTreeSelectionListener implements TreeSelectionListener{
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node =
(DefaultMutableTreeNode)(e.getPath().getLastPathComponent());
Object nodeInfo = node.getUserObject();
if(nodeInfo instanceof MailIndex){
MailIndex index = (MailIndex)nodeInfo;
mailsAnzeigen(index.mailId);
index.read = "Yes";
} -
Trouble compiling for printed documentation
hello, i am having trouble compiling a new document layout i
have created, i have followed peter grainges instructions on his
website but it always fails to generate straight away. Im using
Robohelp x5 with word 2000, does anyone have any ideas?
thanks steveSteve
Was RH installed on the PC you are using with you logon or
that of the person whose job you have taken over? It sounds very
much like the latter and this is exactly what I would expect to
happen.
Try creating a new project with just a couple of topics and
printing from that. It will likely also fail. If it does that
pretty much confirms my theory. Uninstall and reinstall RH with
your logon and with admin rights attached and the problem will
likely go away. -
Trouble compiling a stored procedure
Hello, I have trouble compiling a stored procedure. I include part of the code because I think the key problem is illustrated in these lines:
date1 is declared as a DATE.
index_value2 NUMBER;
BEGIN
date1 := (select sysdate from dual);
index_value2 := (select index_value from tmsdat.a_index_values where price_date < (SELECT sysdate -180
FROM dual) and price_date > (SELECT sysdate -210
FROM dual));
[\code]
The problem seems to be that a more complex syntax is included in the allocation statement (:=), can that be the case? That is, no select etc??
How is this solved?
Any help much appreciated!
best regards
HaraldWell, actually WhiteHat´s magic did the trick, but two errors:
temp := (select (to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) as result
from dual);
[\code]
this line generates problems but I think the approach is the same maybe, that is:
select to_number(to_char(sysdate, 'DD'))-1)/(decode(to_char(sysdate,'MM'),'02',28,30)) into temp as result frmo dual
Further, some error about encountering end of line?
END CONVERT_MARKET_INDEX; -
Trouble compiling servlet example
Hi All, I am trying out an example for servlets and I ran into trouble compiling the the file called "FormProcessingServlet.java" in tutorial located here: http://developer.java.sun.com/developer/onlineTraining/Servlets/Fundamentals/magercises/FormPostingAndProcessing/index.html
The exact problem happens in this line:
isStructure = context.getResourceAsStream(paramStructureFile[0]);
The error says:
FormProcessingServlet.java:127: cannot resolve symbol
symbol : method getResourceAsStream (java.lang.String)
location: interface javax.servlet.ServletContext
isStructure = context.getResourceAsStream(paramStructureFile[0]);
anyone else ran into this problem? How do I fix this? Thanks."cannot resolve symbol" means that the JVM can't find a particular class.
Adjust your systems classpath variable to include all the jar files that you use, I also add "." to include files in the current directory I'm working from. -
I am a total newbie at programming and I am having trouble compiling. In the MS-DOS prompt, I located the folder where my .java file is located and typed the following:
javac SampleProgram.java
I received a "Bad command or file name" error. I am typing the names correctly. I am using Java 2 SDK, Standard Edition Version 1.3.1. Am I doing something wrong?
Thanks for any help.That should fix it. The problem is that DOS needs to know where to find the executable files like javac.exe
You can either set the path temporarily by typing
SET PATH=.;c:\jdk1.3.1\bin
at the command prompt each time you open a command window, or you can set it more permanently by adding it to your startup config. This will depend on your OS. On win 98 for example, there is an AUTOEXEC.BAT (usually with a SET PATH command already present). You could open this in notepad to add/change:
SET PATH=C:\WINDOWS
to
SET PATH=C:\WINDOWS;.;C:\JDK1.3.1\BIN
Reboot to make the changes take effect. Other OS's may have a special dialog to set this kind of command.
Hope this helps some. -
Compiling exiv2 library for use on PPC help
I need to convert the exiv2 metadata library to be compatible for the Mac. I have managed to use x Code to do this for OS X 10.5x on Intel machines but not for use on 10.4x on PPC machines and have failed in my attempts to do so.
If anybody has access to a similar setup which would enable them to compile exiv2 for use on a PPC please could they help.
ref: http://dev.exiv2.org/wiki/exiv2/Supportedimageformats
Thanks.Hamper wrote:
No, your right it was by somebody else. I was hoping that this might be the place where somebody could do it for me?
Perhaps
Would it be too much trouble to request that
Not at all. Requests are free
I'm not really sure what the instructions are for in terms of how to use them, I feel I might just make more mistakes.. like I say I'm not really a developer but need to get this thing compiled for PPC. If you want you can try what I'm going to use it for, its only got an Intel version right now and that's what I need the PPC version for:
I did try to compile it with the commands I listed above. Unfortunately, it has some external dependencies and I don't want to bother installing them.
This is a technical support forum. If you have a technical question I will be happy to help. If it is something really quick, I wouldn't mind doing it for you. What you ask is more than I'm about to commit to in this venue. Sorry. Perhaps someone else can help. -
Trouble backing up Library to CD-R Disc...Error Message 4261
Hi,
I'm new to all of this and I'm luving my Ipod; but I'm having trouble backing up my library to disc. Everytime I try to attempt to back it up, The disc will cancel and tell me that I have an error message of 4261. At times a few files will write but it continues the same error message over and over. Looking at my diagnostic, what can you suggest. I appreciate any help anyone can offer.
Microsoft Windows XP Professional Service Pack 2 (Build 2600)
Gateway FEDORA
iTunes 7.1.1.5
CD Driver 2.0.6.1
CD Driver DLL 2.0.6.2
UpperFilters: GEARAspiWDM (2.0.6.1),
Current user is an administrator.
Video Display Information:
Intel(R) 82815 Graphics Controller (Microsoft Corporation)
Connected Device Information:
DiskDrive, WDC WD200EB-11BHF0, Bus Type ATA, Bus Address [0,0]
DiskDrive, WDC WD400BB-00CAA0, Bus Type ATA, Bus Address [1,0]
CDROM, LG CD-RW CED-8080B, Bus Type ATA, Bus Address [1,0]
CDROM, _NEC DV-5800A, Bus Type ATA, Bus Address [0,0]
If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
E: _NEC DV-5800A, Rev 1.52
Drive is empty.
F: LG CD-RW CED-8080B, Rev 1.04
Drive is empty.
Force Optical Power Calibration before burn is turned on in the preferences.
The last failed data CD or DVD burn had error code 4261(0x000010a5). It happened on drive F: LG CD-RW CED-8080B on CDR media at speed 8X.
Thanks,
ipodcrazed
Gateway Fedora Windows XPI got an Error 4261 message on my computer some months ago while attempting to backup my iTunes music ---about Dec. 2006. Hopefully, the problem is now solved. This was a difficult and time consuming issue to resolve. I shall provide some details of this resolution (worked for me) as I know some others are having the same problem. I hope to post this message to others with 4261 errors.
I have a Dimension E510 computer bought in 2006. I am using Windows XP. My CD ROM burner is as follows: HL-DT-ST DVD +-RW GWA4164B. I wonder if you have the same type CD ROM.
At first, several thoughts came to mind. Google? Never listen to music again. Invest in a sledge hammer? I decided to try and fix the problem and would work on this for the next eight months. Recently, I decided that this problem had to go away. I tried various things to correct the problem often with technical assistance as the following indicate:
Changed copy speed//Did a restore on my computer (no help)// reversed restore
Updated iTunes files//Did virus scans
Contacted a company techie—Discovered my warranty was still good. Cdrom driver was updated. We got the iTunes program to copy a disk. Problem solved?? Time passes.
The problem reoccurs. I contacted a techie again. He was able to get another program to copy on the cdrom I was using to copy iTunes music. I was told that I should contact an iTunes rep. $$. Says cdrom hardware is OK. (One can save files (ex. photos) to a new file created on the desk top and copy them to a cdrom---a test method used.)
I read suggestions about updating my BIOS and chipset on the iTunes message board. Not being a techie I wasn’t so sure about this. (Also Techies did not go in this direction.) Time passes.
I didn’t buy music.
I read messages saying that I should backup my iTunes music.
Called techie again. Updated cdrom driver. We were able to copy data using the same cdrom used for the iTunes copy. (Again this was not a fix. It was indicative of an intermittent/partial cdrom failure which occurred over time, and one manifesting itself in iTunes.) I asked him to try to copy another. Amazingly, this copy failed. Something was wrong. Now we’re getting somewhere. Techie eliminated some startup files to try to determine source of a software error, if one. This did not fix the problem.
Techie deleted a couple registry files. I don’t like deleting registry files because they serve a valuable purpose, but I’m not a techie. Later I was told that this is a routine test procedure. (After the fix I would have to do an update of my iTunes program. iTunes has a repair feature which was on my desktop—a holdover from a previous attempt to fix things with an iTunes update. I ran this repair without harming my music files, and this repaired the program.)
Techie said I may have a problem with my current brands of CD-R disks. I bought and tried other brands---four all total. This did not work.
I happened to attempt to copy some pictures as I was interested in having some developed. To my surprise, my computer stopped the copy citing an error with the copy process. The problem now manifested itself with another software program. Heretofore, I could successfully copy pictures using the same cdrom but not iTunes music.
I called the techie again. I told him what I had done and new error in copying other files to the cdrom. We attempted to use other programs to copy music and picture files on the cdrom. (My thinking is, if they had worked, then the cdrom was OK, and the problem was a software problem and likely involving iTunes---software and not hardware Obviously I wanted a cdrom replacement as this would be easier for me than pursuing imbedded software program issues.) We could not get any software programs to copy files to the cdrom in question. This was a clear indication that the cdrom was defective. We likely used up ten CD-R disks in these latest attempts.
Looking back, there was a subtle indication of a problem with the cdrom. There was a problem with one of the songs I had copied to a new disk (No. 24 of 24 songs on a disk). The song was copied with errors. This shouldn’t have happened.
The company replaced cdrom free of charge the next morning in about 5 minutes. Wow!
I tried the new cdrom and began burning iTunes music right away. No 4261 error message. I also copied pictures to the same cdrom without any error messages. I also successfully used other brands of CD-R disks.
I had problems with iTunes and a photo program after cdrom installation but fixed them with updates. I also experienced problems with Windows Media Player and Roxio/Sonic. They didn’t want to recognize the new cdrom in drive (E:). Restore made things worst so I undid this. I spoke to a tech again about these issues as I wasn’t certain of the scope/nature of problem. Issue of ownership of problem came up again. Software vs hardware. We updated both programs with updates from company support pages. This fixed the problem. Point learned here was the need to keep files updated with the latest and greatest. I am skeptical of too many changes because of risk of problems. Now, it seems, I have no choice but to do this---critical changes at least. Many thanks to Techie.
The thought in my mind now is whether performing updates and specifically on Windows Media Player would have fixed the error to begin with. Well, I did run an update on my iTunes prior to, and there are no updates for my photo program. Looking back I would try the updates/repair first (the easy stuff) before I replaced the cdrom. I spent about 9 hours on phone with techies(caution not to delete music). Without warranty, I couldn’t have afforded this. Luckily for me it was a hardware issue.
Replacing the cdrom on my computer fixed the 4261 error on my computer. I hope something here will be of help to some of you who have the same problem.
Kindest regards. 08/14/07 -
Having trouble consolidating iTunes library (to then copy to new computer)
The music on my iPod was compiled over time from various files on the computer. I am trying to consolidate all the music into a single iTunes library so I can move the entire library to my new computer. When I tried to do that, it said "copying files" and then I got an error message: "Copying music failed. The file name was invalid or too long." What can I do to consolidate my music? thanks
iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
Quick answer if you let iTunes manage your music: Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive. Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.
To see your iTunes folder click on the Music folder icon in your Finder sidebar. -
Hi everyone,
I'm trying to compile gtk+ 2.13.7, but Make fails with an error about libcairo.
As far as I know, I've successfully compiled all of gtk's dependencies, but for
some reason gtk is looking for libcairo in my X11 directory instead of in my
/usr/local/lib directory. This is on OS X 10.5.4, and I've compiled everything
myself (not using fink or darwin ports). Here's the last part of the Make output:
<pre>
Extracting /Users/jeff/Desktop/gtk+-2.13.7/gdk/x11/.libs/libgdk-x11.a
(cd .libs/libgdk-x11-2.0.lax/libgdk-x11.a && ar x /Users/jberman/Downloads/forPan/gtk+-2.13.7/gdk/x11/.libs/libgdk-x11.a)
sed 's,^,_,' < .libs/libgdk-x11-2.0.exp > .libs/libgdk-x11-2.0-symbols.expsym
gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libgdk-x11-2.0.0.1307.0.dylib .libs/gdk.o .libs/gdkapplaunchcontext.o .libs/gdkcairo.o .libs/gdkcolor.o .libs/gdkcursor.o .libs/gdkdisplay.o .libs/gdkdisplaymanager.o .libs/gdkdnd.o .libs/gdkdraw.o .libs/gdkevents.o .libs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkimage.o .libs/gdkkeys.o .libs/gdkkeyuni.o .libs/gdkpango.o .libs/gdkpixbuf-drawable.o .libs/gdkpixbuf-render.o .libs/gdkpixmap.o .libs/gdkpolyreg-generic.o .libs/gdkrectangle.o .libs/gdkregion-generic.o .libs/gdkrgb.o .libs/gdkscreen.o .libs/gdkselection.o .libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkwindowimpl.o .libs/gdkenumtypes.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkapplaunchcontext-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkasync.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkcolor-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkcursor-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdisplay-x11.o
.libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdnd-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkdrawable-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkevents-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkfont-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkgc-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkgeometry-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkglobals-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkim-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkimage-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkinput-none.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkinput.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkkeys-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkmain-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkpixmap-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkproperty-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkscreen-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkselection-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkspawn-x11.o
.libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdktestutils-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkvisual-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkwindow-x11.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkxftdefaults.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/gdkxid.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/xsettings-client.o .libs/libgdk-x11-2.0.lax/libgdk-x11.a/xsettings-common.o -L/usr/X11/lib /usr/X11/lib/libXinerama.1.0.0.dylib /usr/X11/lib/libXdmcp.6.0.0.dylib /usr/X11/lib/libXau.6.0.0.dylib /usr/X11/lib/libXext.6.4.0.dylib /usr/X11/lib/libX11.6.2.0.dylib -L/usr/local/lib /usr/local/lib/libpangocairo-1.0.dylib /usr/local/lib/libcairo.dylib /usr/local/lib/libpng12.dylib /usr/X11/lib/libXrender.1.3.0.dylib /usr/X11/lib/libSM.6.0.0.dylib /usr/X11/lib/libICE.6.3.0.dylib /usr/local/lib/libpixman-1.dylib /usr/local/lib/libpangoft2-1.0.dylib /usr/local/lib/libfontconfig.dylib /usr/lib/libiconv.dylib /usr/local/lib/libfreetype.dylib /usr/lib/libz.dylib
/usr/lib/libexpat.dylib /usr/local/lib/libpango-1.0.dylib /usr/lib/libc.dylib /usr/lib/libm.dylib /usr/X11/lib/libcairo.2.17.5.dylib /usr/X11/lib/libfreetype.dylib /usr/local/lib/libgio-2.0.dylib /usr/local/lib/libgobject-2.0.dylib /usr/local/lib/libgmodule-2.0.dylib /usr/local/lib/libglib-2.0.dylib /usr/local/lib/libintl.dylib /usr/X11/lib/libfontconfig.dylib -lm ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.dylib -install_name /usr/local/lib/libgdk-x11-2.0.0.dylib -compatibility_version 1308 -current_version 1308.0 -Wl,-single_module -Wl,-exportedsymbolslist,.libs/libgdk-x11-2.0-symbols.expsym
i686-apple-darwin9-gcc-4.0.1: /usr/X11/lib/libcairo.2.17.5.dylib: No such file or directory
make[4]: * [libgdk-x11-2.0.la] Error 1
make[3]: * [all-recursive] Error 1
make[2]: * [all] Error 2
make[1]: * [all-recursive] Error 1
make: * [all] Error 2
</pre>
Does anyone have any idea why it would suddenly look for libcairo in
/usr/X11/lib when pango found the correct libcairo? Any ideas on how to get
around this? A few months ago I actually successfully compiled GTK on a
different Mac, so I know it can be done. Help!
Thanks!I think you just need to do that for whatever library (or libraries) you want to explicitly direct it to.
It might be easier first to try
LDFLAGS="-L/path/to/your/lib"
configure --help
will tell you more about how explicitly to feed in the information.
Nobody "needs" to use fink, but I find with stuff like gtk+2, which I care about only because I need it to run programs I am interested in, it is far easier to let an expert worry about how to make it work.
What works or does not work out of the box is highly package-dependent. As time goes on, more and more developers try to make their stuff work out of the box for OS X.
Here's the version of gtk+2 I have installed with fink, fwiw:
fink list gtk+2
Information about 7126 packages read in 1 seconds.
i gtk+2 2.12.11-2 The Gimp Toolkit
Not quite as new as 2.14, but a lot closer. (I use fink "unstable", which more accurately translates to "current.")
There are several vocal people who post here who think no one should use fink or darwinports. It is simply a matter of personal preference. But if you want to roll your own, sometimes it is worth peaking to see how the packages are tweaked by the fink maintainers (browse the .info files). -
Trouble compiling Intel 2.9.1 driver
Hello. I have an HP G62 laptop with onboard intel graphics. After I installed Arch I had a problem. Enabling KMS would make my screen go black on boot (and stay black). Not enabling KMS would make X refuse to start since the new Intel drivers require KMS. Therefore, I decided to roll back to the 2.9.1 driver. I browsed the Package Database, found my driver at here:
http://repos.archlinux.org/wsvn/package … &peg=56808
I downloaded the PKGBUILD and LICENSE, and ran "makepkg -s". After installing dependencies, everything was rolling until makepkg encountered errors:
==> Making package: xf86-video-intel 2.9.1-1 (Wed Sep 15 23:12:40 EEST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading xf86-video-intel-2.9.1.tar.bz2...
--2010-09-15 23:12:41-- http://xorg.freedesktop.org//releases/i … .1.tar.bz2
Resolving xorg.freedesktop.org... 131.252.210.176
Connecting to xorg.freedesktop.org|131.252.210.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 789001 (771K) [application/x-bzip2]
Saving to: "xf86-video-intel-2.9.1.tar.bz2.part"
100%[==========================================>] 789,001 9.26K/s in 80s
2010-09-15 23:14:06 (9.59 KB/s) - "xf86-video-intel-2.9.1.tar.bz2.part" saved [789001/789001]
-> Found LICENSE
==> Validating source files with md5sums...
xf86-video-intel-2.9.1.tar.bz2 ... Passed
LICENSE ... Passed
==> Extracting Sources...
-> Extracting xf86-video-intel-2.9.1.tar.bz2 with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for bash... /bin/bash
checking if dolt supports this host... yes, replacing libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GEN4ASM... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mprotect... yes
checking if XINERAMA is defined... yes
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XF86DRI is defined... yes
checking if DPMSExtension is defined... yes
checking for XORG... yes
checking for XEXT... yes
checking for ANSI C header files... (cached) yes
checking whether to include DRI support... checking for /usr/include/xorg/dri.h... yes
checking for /usr/include/xorg/sarea.h... yes
checking for /usr/include/xorg/dristruct.h... yes
checking whether to include DRI support... yes
checking for PCIACCESS... yes
checking for DRM... yes
checking for DRI... yes
checking for XVMCLIB... yes
checking whether to include XvMC support... yes
checking for /usr/share/sgml/X11/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... /usr/bin/ps2pdf
checking Whether to build documentation... no
checking Whether to build pdf documentation... yes
checking for sed... /bin/sed
configure: creating ./config.status
config.status: creating shave
config.status: creating shave-libtool
config.status: creating Makefile
config.status: creating uxa/Makefile
config.status: creating src/Makefile
config.status: creating src/xvmc/Makefile
config.status: creating src/xvmc/shader/Makefile
config.status: creating src/xvmc/shader/mc/Makefile
config.status: creating src/xvmc/shader/vld/Makefile
config.status: creating src/bios_reader/Makefile
config.status: creating src/ch7017/Makefile
config.status: creating src/ch7xxx/Makefile
config.status: creating src/ivch/Makefile
config.status: creating src/reg_dumper/Makefile
config.status: creating src/sil164/Makefile
config.status: creating src/tfp410/Makefile
config.status: creating man/Makefile
config.status: creating src/render_program/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making all in uxa
CC uxa.o
CC uxa-accel.o
CC uxa-glyphs.o
CC uxa-render.o
uxa-render.c: In function 'uxa_picture_from_pixman_image':
uxa-render.c:392:16: warning: comparison between 'pixman_format_code_t' and 'enum _PictFormatShort'
uxa-render.c: In function 'uxa_acquire_pattern':
uxa-render.c:456:5: error: too few arguments to function 'image_from_pict'
/usr/include/xorg/fb.h:2085:1: note: declared here
make[2]: *** [uxa-render.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Aborting...
Any idea what could be causing this problem and how to fix it?I installed the x86_64 package from that site, but X still doesn't load the intel module. Here's the relevant part from /var/log/Xorg.0.log:
[ 124.478] (II) LoadModule: "intel"
[ 124.478] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 124.478] (II) Module intel: vendor="X.Org Foundation"
[ 124.478] compiled for 1.7.1, module version = 2.9.1
[ 124.478] Module class: X.Org Video Driver
[ 124.479] ABI class: X.Org Video Driver, version 6.0
[ 124.479] (EE) module ABI major version (6) doesn't match the server's version ($
[ 124.479] (II) UnloadModule: "intel"
[ 124.479] (II) Unloading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 124.479] (EE) Failed to load module "intel" (module requirement mismatch, 0)
Last edited by michaelmoufarrij (2010-09-16 07:37:11) -
Trouble Compiling mysql-query-browser
After building all of the necesary prerequsites I am trying to compile mysql-query-browser on Solaris 10 (x86). I am getting some errors (shown below) when I run the configure script for the mysql-gui-common components. Can anyone tell me how I might fix these errors?
---configure output---
checking for a BSD-compatible install... /opt/sfw/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 libxml-2.0 >= 2.6.2... yes
checking GLIB_CFLAGS... -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2
checking GLIB_LIBS... -L/usr/local/lib -lglib-2.0 -lxml2 -lpthread -lz -lm -lsocket -lnsl
checking for gthread-2.0 libxml-2.0 >= 2.6.2... yes
checking GTHREAD_CFLAGS... -threads -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2
checking GTHREAD_LIBS... -threads -L/usr/local/lib -lgthread-2.0 -lglib-2.0 -lxml2 -lpthread -lz -lm -lsocket -lnsl
checking for gtk+-2.0... yes
checking GTK_CFLAGS... -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
checking GTK_LIBS... -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
checking for libglade-2.0 gtkmm-2.0... yes
checking GNOME_CFLAGS... -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/openwin/include -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gtkmm-2.0 -I/usr/local/lib/gtkmm-2.0/include -I/usr/local/lib/sigc++-1.2/include -I/usr/local/include/sigc++-1.2 -I/usr/include/libglade-2.0 -I/usr/include/libxml2
checking GNOME_LIBS... -L/usr/local/lib -lglade-2.0 -lxml2 -lpthread -lz -lsocket -lnsl -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-x11-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
checking for mysql_config... -I'/usr/sfw/include/mysql'
checking for mysql_config... Usage: /usr/sfw/bin/mysql_config [OPTIONS]
Options:
--cflags [-I'/usr/sfw/include/mysql']
--libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L'/usr/sfw/lib/mysql' -lmysqlclient -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm] --socket [tmp/mysql.sock]
--port [3306]
--version [4.0.15]
--libmysqld-libs [-R/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L'/usr/sfw/lib/mysql' -lmysqld -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lrt]
checking for pcre-config... yes
checking for pcre-config... -L/opt/sfw/lib -lpcre
configure: creating ./config.status
config.status: creating Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/source/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_grt/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_grt/source/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_grt_modules/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_grt_modules/source/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_gc/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library_gc/source/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating source/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating source/grtsh/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating source/linux/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating source/linux/canvas/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating images/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating images/png/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating images/icons/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating images/icons/png/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating res/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating res/linux/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/read_international/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/test_detect_charset/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/test_mysql_api/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/test_parse_sql_statemets/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/test_translations/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: creating library/tests/test_xml/Makefile
sed: command garbled: s,@MYSQL_LIBS@,Usage: /usr/sfw/bin/mysql_config [OPTIONS]
config.status: executing depfiles commandsI agree that it is entirely possible that the problem lies with mySQL and not Sun, however the query I posted on their forums is sitting in deathly silence so I'm now trying elsewhere.
After making the change you mentioned it configures clean but it doesn't buil properly afterward, I presume this is the same for you.
Maybe you are looking for
-
I used my Apple id to download an app on my Sister's new ipad. Now my email account is visible on her ipad too. If I reset her ipad, will that delete my id, apps and docs on my ipad?
-
I used to have notes with ical and contacts, but somehow it's gone. I can see that I have notes in mail, but this doesn't sync with the notes that I have on my iphone. How can I sync my notes on my iphone on to my mac? Help please
-
I used to have Spotify student, now it's gone back to normal Spotify ($9.99/month). 1. Why did it do this?2. Why do I have switch accounts to free just to go back to Student? (Simply put, why can't you just go from Premium to Student?)
-
All, We are beginning to implement an Oracle GL and I have been asked to provide input as to the file format provided from the ledger to process through FDM (I know, processing directly into HFM is out..at least for now..). Is there a "Best Practice"
-
Address Book in Lion is killing me.
Address Book in Lion is killing me. I'm trying to create a new group or distribution list based of of existing contacts I have but can't figure it out. Any one have a link to a tutorial? Thanks