Hi ! I change the CentOS-Media.repo in etc/yum.repo.d because I want to install a program of flash memory. I changed enable and baseurl fields : `enable = 0` to `enable = 1` and `baseurl = file:///media` in CentOS-Media.repo but when I write this cammand in **media** directory : `#yum --disablerepo=\* --enablerepo=c5-media install namesoftware` it show an error to me: Error : cannot retrieve repository metadata (repomd.xml) for repository:c5-media .please verify its path and try again what is repomd.xml? how can I solve this problem? plz help me!

Member Avatar
Member Avatar
+0 forum 5

I want to install php package offline. We have to run projects without using or starting localhost. How to use it

Member Avatar
Member Avatar
+0 forum 1

import java.util.Scanner; package p1; class Electricity { int cread=18634,fix_rate,due,ub_tax,curr_charge,bill,to_bill ; int pread,unit ; System.out.println("fix_rate="); Scanner sc=new Scanner(System.in); int fix_rate=sc.nextInt(); System.out.println("due="); int due= sc.nextInt(); System.out.println("ub_tax="); int ub_tax= sc.nextInt(); System.out.println("curr_charge="); int curr_charge= sc.nextInt(); System.out.println("unit="); int unit=sc.nextInt(); public void calc() { do { pread=cread-unit; System.out.println("fix_rate=" +pread); } while(unit<200) { int c1=2.75*unit; System.out.println(c1); } while(200< unit >300) { int c2=3.00*unit; System.out.println(c2); } while(300< unit > 450) { int c3= 4.65*unit; System.out.println(c3); } } public static void main (String[] arg) { Electricity e=new Electricity(); e.calc(); } } **Errors are:** Electricity.java:2: class, interface, or enum expected package p1; ^ Electricity.java:7: <identifier> expected System.out.println("fix_rate="); ^ Electricity.java:7: illegal …

Member Avatar
Member Avatar
+0 forum 6

I'm packaging my java program as a jar..it includes mysql-connector.jar..it runs fine when i run it in eclipse..now i need to distriute the jar file..I packaged the jar file and when I run it through command line using java -jar myprogram.jar, it throws ClassNotFoundException: com.mysql.jdbc.Driver could anyone please tell me what is going wrong?? my manifest looks like this <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> <classpathentry kind="lib" path="lib/mysql-connector-java-5.1.14-bin.jar"/> <classpathentry kind="output" path="bin"/> </classpath>

Member Avatar
Member Avatar
+0 forum 2

Hi Team, Im preparing for OCJP and in one of the sample question is below Three version of MyClass.class exist on a file system 1. /foo/bar/ 2. /foo/bar/baz 3. /foo/bar/baz/bing And the system class path includes /foo/bar/baz And this is the command invoked from /foo java -classpath /foo/bar/baz/bing:/foo/bar MyClass Which version will be used by java ? The answer says : /foo/bar/baz/bing/MyClass.class But how is this possible, the command should be invoked from above "foo" directory right ? if its invoked from foo directory then it wont find foo.bar.baz.bing.MyClass right ? Please throw some light on this answer.

Member Avatar
Member Avatar
+0 forum 6

Hi guys, I normally package a dotnet installer and my software installer for my client and he normally has to install each seperately. Is there a way i can add dotnet installer to my project installer... I do not want to use third party apps like install shield wizard... You help will be highly appreciated

Member Avatar
Member Avatar
+0 forum 2

If I install a program that was created by Visual Basic 6.0 (via Package and Deployment Wizard), and install it on my computer, is Visual Basic 6.0 need to run that installed program?

Member Avatar
Member Avatar
+0 forum 1

My network card doesn't have any UNIX drivers, but it does have windows drivers, so I'm trying to install ndiswrapper. It seems like the default installation of Ubuntu server doesn't have python installed, so I can't dpkg niswrapper in. Is there any resource to help me learn how to hunt down and install the things I need when I don't have an internet connection? If you can use apt-get it's awesome, but when you can't it seems like all information on the internet says "use apt-get". Any resources and or help that can teach me to be more independent in …

Member Avatar
Member Avatar
+0 forum 6

I have an application written in VB.Net with a MySQL database that is working fine in my development environment. I would like to create an installation package to test on other computers. The install package should include: 1. Check for .Net 4 - if it doesn't exist then install it (I've downloaded the .net 4 full package file) 2. Check for existence of MySQL - install the database I have a few questions: 1. Is there a good book or web-tutorial that can explain how to create an installation package? How about a good person to speak with - that …

Member Avatar
Member Avatar
+0 forum 1

hello everybody first of all thanks to Daniweb and all its users for helping me lot of time. now come to the problem I've just started studying servlets 1 week back it was going well but i got one problrm when i try to run a packaged servlet code. path to servlet (invoker servlet) class [QUOTE]D:\apache-tomcat-6.0.35\webapps\helloprogram\WEB-INF\classes\coreservlets\HelloServlet2.java[/QUOTE] [CODE] package coreservlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloServlet2 extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response)throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); String docType ="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 "+"Transitional//EN\">\n"; out.println(docType + "<HTML>\n" + "<HEAD><TITLE>Hello (2)</TITLE></HEAD>\n" + …

Member Avatar
Member Avatar
+0 forum 1

Hi everyone! I have a quick question. Is there any way i can update python package for cygwin manually? The setup.exe which handles cygwin installation and updates, prompts me to update the whole cygwin installation to 1.7.x but i would like to keep using the older version (1.5.25). I only want to upgrade to the newest python available for cygwin. Thanks in advance! :)

Member Avatar
+0 forum 0

i am a freshman computer science major, studying ahead of the class. we have been using automated testing classes { junit.framework.TestCase; }. i have downloaded junit4.9b2.jar from junit.org, which i understand to be the junit package (?) but i don't know how to use it. i have read that javac will check { \Java\jdk6\lib\ext\ } for packages, but this doesn't seem to be working. i have read to append the file name { \Java\jdk6\lib\ext\junit4.9b2.jar; } to "CLASSPATH", but this hasn't worked either. i have used netbeans, jcreator le, and cmd, all with the result of { [CODE]package junit.framework does not …

Member Avatar
Member Avatar
+0 forum 7

package class import java.io.*; import java.lang.*; import java.util.*; package Yo public class C { String s,f,d; C(String s,String f,String d) { this.f=f; this.s=s; this.d=d; } void displayj() { System.out.println("1st arg passed:"+" "+s); System.out.println("2nd arg passed:"+" "+f); System.out.println("single arg const:"+" "+d); } } main class import java.lang.*; import java.io.*; import java.util.*; import java.Yo.*; class B extends C { String s,d,h,f; B(String h,String s,String f,String d) { super(s,f,d); this.h=h; } void display() { System.out.println("b class const:"+" "+h); displayj(); } } class A1 { public static void main(String args[])throws IOException { Scanner s=new Scanner(System.in); B anu=new B(s.nextLine(),"haiii","i rock","punk"); anu.display(); } } i created …

Member Avatar
Member Avatar
+0 forum 7

A snippet: package com.deitel.jhtp7.ch14; public class AccountRecord { ..... Doubt: 1. What does the above package statement imply. As in how(path) this AccountRecord.java will be stored? As in what folder hierarchy should I create? 2. In Command prompt I have set my Current Directory as : E:\RDL\Dropbox\Coding\Core Java\File So will the file AccountRecord.java be inside the above folder structure? 3. E:\RDL\Dropbox\Coding\Core Java> set path=%path%;C:\Program Files\Java\jdk1.6.0_24\bin This is how I set path to the jdk, is that of any significance for package as in do I have to do anything with this to store the .java and .class file and compile …

Member Avatar
Member Avatar
+0 forum 2

I'm trying to build the package for use in Maya. Maya comes with its own python installation so the .exe installer for this package doesn't work for me. the package is [URL="http://polygon.origo.ethz.ch/"]Polygon[/URL] I downloaded the zip. It contains: setup.py /src /Polygon and some other stuff In cygwin I run: ./mayapy.exe "..\temp\Polygon-2.0.4\setup.py" build and it says: "error: package directory 'Polygon' does not exist" First I read about how to install packages on the python website. Then I tried putting the /Polygon folder in different places, like Maya's python's site-packages directory I think in order to build the .c code I'll need …

Member Avatar
Member Avatar
+0 forum 2

So I have a WAMP server setup on my development machine using wampserver which i want to deploy on a standard windows pc through a single installation package. I'll be using NSIS to make the installation file. I need to know a few things: 1. Should I install apache,php,mysql individually or use something like wampServer (which I am using on the dev machine)? 2. Do I need to check for pre-existing installations of Apache,mysql and/or php? If so, what should I do if I find them? 3. Should I do silent installs or call the individual installers for each 4. …

Member Avatar
+0 forum 0

I prefer firefox over other internet browsers including iceweasel (and lets not bring that back up or get into a debate). I am semi-newer to linux but am a fast learner so bear with me.... I have downloaded firefox 5.0.1 from the site (for debian). Then I extracted the file in my Downloads. Then I moved the file to /opt (where others say it is susspose to be). From there I changed my directory to be opt and tried apt-get install firefox but I get this error: root@Mike-Debian:/opt# apt-get install firefox Reading package lists... Done Building dependency tree Reading state …

Member Avatar
Member Avatar
+0 forum 1

Hey everybody. I was wondering if this is possible, and if it is, why it isn't working. When you right-click an application (.app), there is an option for "Show Package Contents." If you select that option, it opens up a "Contents" folder. Inside that folder, there are multiple folders, but one in particular, the "MacOS" folder, seems to be common to all applications. Inside this folder is usually a single Unix Executable File. If you run that, the application is basically run from the terminal, or at least that is what it seems like to me. Now, the question part: …

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, I am running RM CC4 on a windows xp server and need to build a package for adobe photoshop elements 6. From what I have found though once I assign the package across the network im going to hit a few problems. The writeaccess.ini file will conflict with the settings XP normally has control over which is going to cause stability and log on problems for the users. I am based in a school so some of the user settings are very much locked down which limits some of my options. For now I have done a local …

Member Avatar
+0 forum 0

Hi, Is it possible to design a PHP application to draw UML diagrams using reverse engineering? So far I found a PEAR package (PHP_UML). Anybody has an idea on using it? Thanks, Kiran

Member Avatar
Member Avatar
+0 forum 1

The End.